1 package org.unicode.cldr.util;
2 
3 import java.util.Collection;
4 import java.util.List;
5 
6 import org.unicode.cldr.test.CheckCLDR.CheckStatus;
7 import org.unicode.cldr.util.VoteResolver.Status;
8 import org.unicode.cldr.util.VoteResolver.VoterInfo;
9 
10 /**
11  * Provides detailed information about paths and voters
12  *
13  * @author markdavis
14  *
15  */
16 public class CLDRInfo {
17 
18     public interface PathValueInfo { // DataSection.DataRow will implement
getValues()19         Collection<? extends CandidateInfo> getValues();
20 
getCurrentItem()21         CandidateInfo getCurrentItem();
22 
getBaselineValue()23         String getBaselineValue();
24 
getBaselineStatus()25         default Status getBaselineStatus() {
26             return Status.missing;
27         }
28 
getCoverageLevel()29         Level getCoverageLevel();
30 
hadVotesSometimeThisRelease()31         boolean hadVotesSometimeThisRelease();
32 
getLocale()33         CLDRLocale getLocale();
34 
getXpath()35         String getXpath();
36     }
37 
38     public interface CandidateInfo { // DataSection.DataRow.CandidateItem will implement
getValue()39         String getValue();
40 
getUsersVotingOn()41         Collection<UserInfo> getUsersVotingOn();
42 
getCheckStatusList()43         List<CheckStatus> getCheckStatusList();
44     }
45 
46     public interface UserInfo { // UserRegistry.User will implement
getVoterInfo()47         VoterInfo getVoterInfo();
48     }
49     // TODO merge into VoterInfo.
50 }
51