Home
last modified time | relevance | path

Searched refs:Validity (Results 1 – 25 of 129) sorted by relevance

123456

/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsontype/
DPolymorphicTypeValidator.java58 public enum Validity { enum in PolymorphicTypeValidator
98 public abstract Validity validateBaseType(MapperConfig<?> config, JavaType baseType); in validateBaseType()
121 public abstract Validity validateSubClassName(MapperConfig<?> config, JavaType baseType, in validateSubClassName()
141 public abstract Validity validateSubType(MapperConfig<?> config, JavaType baseType, in validateSubType()
156 public Validity validateBaseType(MapperConfig<?> config, JavaType baseType) { in validateBaseType()
157 return Validity.INDETERMINATE; in validateBaseType()
161 …public Validity validateSubClassName(MapperConfig<?> config, JavaType baseType, String subClassNam… in validateSubClassName()
163 return Validity.INDETERMINATE; in validateSubClassName()
167 public Validity validateSubType(MapperConfig<?> config, JavaType baseType, JavaType subType) in validateSubType()
169 return Validity.INDETERMINATE; in validateSubType()
DDefaultBaseTypeLimitingValidator.java28 public Validity validateBaseType(MapperConfig<?> config, JavaType baseType) in validateBaseType()
32 return Validity.DENIED; in validateBaseType()
36 return Validity.INDETERMINATE; in validateBaseType()
40 public Validity validateSubClassName(MapperConfig<?> config, in validateSubClassName()
43 return Validity.INDETERMINATE; in validateSubClassName()
47 public Validity validateSubType(MapperConfig<?> config, JavaType baseType, in validateSubType()
51 ? Validity.ALLOWED in validateSubType()
52 : Validity.DENIED; in validateSubType()
DBasicPolymorphicTypeValidator.java396 public Validity validateBaseType(MapperConfig<?> ctxt, JavaType baseType) {
401 return Validity.DENIED;
407 return Validity.ALLOWED;
411 return Validity.INDETERMINATE;
415 public Validity validateSubClassName(MapperConfig<?> ctxt, JavaType baseType,
423 return Validity.ALLOWED;
428 return Validity.INDETERMINATE;
432 public Validity validateSubType(MapperConfig<?> ctxt, JavaType baseType, JavaType subType)
440 return Validity.ALLOWED;
445 return Validity.INDETERMINATE;
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestValidity.java28 import org.unicode.cldr.util.Validity;
29 import org.unicode.cldr.util.Validity.Status;
47 Validity validity = Validity.getInstance();
51 { LstrType.language, Validity.Status.regular, true, "aa", "en" }, in TestBasicValidity()
54 { LstrType.language, Validity.Status.special, true, "mul" }, in TestBasicValidity()
55 { LstrType.language, Validity.Status.deprecated, true, "aju" }, in TestBasicValidity()
56 { LstrType.language, Validity.Status.reserved, true, "qaa", "qfy" }, in TestBasicValidity()
57 { LstrType.language, Validity.Status.private_use, true, "qfz" }, in TestBasicValidity()
58 { LstrType.language, Validity.Status.unknown, true, "und" }, in TestBasicValidity()
60 { LstrType.script, Validity.Status.reserved, true, "Qaaa", "Qaap"}, in TestBasicValidity()
[all …]
DTestSubdivisions.java22 import org.unicode.cldr.util.Validity;
23 import org.unicode.cldr.util.Validity.Status;
61 final Validity VALIDITY = Validity.getInstance(); in TestNames()
DTestCLDRLocaleCoverage.java28 import org.unicode.cldr.util.Validity;
29 import org.unicode.cldr.util.Validity.Status;
55 Map<String, Status> validity = Validity.getInstance().getCodeToStatus(LstrType.language); in TestLanguageNameCoverage()
DTestAttributeValues.java51 import org.unicode.cldr.util.Validity;
70 private static final Validity VALIDITY = Validity.getInstance();
354 … Map<String, Validity.Status> codeToStatus = VALIDITY.getCodeToStatus(lstr); in show()
DTestDtdData.java28 import org.unicode.cldr.util.Validity;
29 import org.unicode.cldr.util.Validity.Status;
649 {Status.class, "regular deprecated", Validity.Status.regular, Status.deprecated}, in TestEnumParser()
650 …{Status.class, "deprecated regular", "regular deprecated", Validity.Status.regular, Status.depreca… in TestEnumParser()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/
DMergeWithCreator1921Test.java19 private final Validity validity;
22 public Account(@JsonProperty(value = "validity", required = true) Validity validity) { in Account()
26 public Validity getValidity() { in getValidity()
31 static class Validity { class in MergeWithCreator1921Test
39 public Validity(@JsonProperty(value = "validFrom", required = true) String validFrom, in Validity() method in MergeWithCreator1921Test.Validity
76 verifyException(e, Validity.VALID_TO_CANT_BE_BEFORE_VALID_FROM); in testMergeWithCreator()
80 Account acc = new Account(new Validity("abc", "def")); in testMergeWithCreator()
86 verifyException(e, Validity.VALID_TO_CANT_BE_BEFORE_VALID_FROM); in testMergeWithCreator()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/vld/
DValidatePolymSubTypeTest.java67 public Validity validateBaseType(MapperConfig<?> ctxt, JavaType baseType) { in validateBaseType()
68 return Validity.INDETERMINATE; in validateBaseType()
72 …public Validity validateSubClassName(MapperConfig<?> ctxt, JavaType baseType, String subClassName)… in validateSubClassName()
74 return Validity.DENIED; in validateSubClassName()
77 return Validity.ALLOWED; in validateSubClassName()
79 return Validity.INDETERMINATE; in validateSubClassName()
83 public Validity validateSubType(MapperConfig<?> ctxt, JavaType baseType, JavaType subType) { in validateSubType()
84 return Validity.DENIED; in validateSubType()
92 public Validity validateBaseType(MapperConfig<?> ctxt, JavaType baseType) { in validateBaseType()
93 return Validity.INDETERMINATE; in validateBaseType()
[all …]
DValidatePolymBaseTypeTest.java61 public Validity validateBaseType(MapperConfig<?> ctxt, JavaType baseType) { in validateBaseType()
64 return Validity.DENIED; in validateBaseType()
67 return Validity.ALLOWED; in validateBaseType()
70 return Validity.INDETERMINATE; in validateBaseType()
74 …public Validity validateSubClassName(MapperConfig<?> ctxt, JavaType baseType, String subClassName)… in validateSubClassName()
75 return Validity.DENIED; in validateSubClassName()
79 public Validity validateSubType(MapperConfig<?> ctxt, JavaType baseType, JavaType subType) { in validateSubType()
80 return Validity.DENIED; in validateSubType()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/testutil/
DNoCheckSubTypeValidator.java19 public Validity validateBaseType(MapperConfig<?> config, JavaType baseType) { in validateBaseType()
20 return Validity.INDETERMINATE; in validateBaseType()
24 public Validity validateSubClassName(MapperConfig<?> config, in validateSubClassName()
26 return Validity.ALLOWED; in validateSubClassName()
30 public Validity validateSubType(MapperConfig<?> config, JavaType baseType, in validateSubType()
32 return Validity.ALLOWED; in validateSubType()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/
DLaissezFaireSubTypeValidator.java25 public Validity validateBaseType(MapperConfig<?> ctxt, JavaType baseType) { in validateBaseType()
26 return Validity.INDETERMINATE; in validateBaseType()
30 public Validity validateSubClassName(MapperConfig<?> ctxt, in validateSubClassName()
32 return Validity.ALLOWED; in validateSubClassName()
36 public Validity validateSubType(MapperConfig<?> ctxt, JavaType baseType, in validateSubType()
38 return Validity.ALLOWED; in validateSubType()
DStdTypeResolverBuilder.java11 import com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator.Validity;
315 final Validity validity = ptv.validateBaseType(config, baseType); in verifyBaseTypeValidity()
317 if (validity == Validity.DENIED) { in verifyBaseTypeValidity()
321 if (validity == Validity.ALLOWED) { in verifyBaseTypeValidity()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateValidityXml.java29 import org.unicode.cldr.util.Validity;
30 import org.unicode.cldr.util.Validity.Status;
48 private static final Validity VALIDITY = Validity.getInstance();
49 …private static Validity OLD_VALIDITY = Validity.getInstance(CLDRPaths.LAST_RELEASE_DIRECTORY + "co…
94 Map<String, Validity.Status> codeToStatus = new TreeMap<>();
95 Map<Validity.Status, String> statusComment = new EnumMap<>(Status.class);
154 Validity.Status subtype = entry2.getKey(); in main()
235 …Status status = aliases.containsKey(contained) ? Validity.Status.deprecated : Validity.Status.regu… in doSubdivisions()
281 Validity.Status subtype = Validity.Status.regular; in doLstr()
283 subtype = Validity.Status.unknown; in doLstr()
[all …]
DCheckLanguageNameCoverage.java15 import org.unicode.cldr.util.Validity;
16 import org.unicode.cldr.util.Validity.Status;
25 Validity validity = Validity.getInstance(); in main()
DGenerateSubdivisions.java20 import org.unicode.cldr.util.Validity;
21 import org.unicode.cldr.util.Validity.Status;
46 …static final Validity VALIDITY_FORMER = Validity.getInstance(CLDRPaths.LAST_RELEASE_DIRECTORY + "c…
DChartSubdivisions.java16 import org.unicode.cldr.util.Validity;
17 import org.unicode.cldr.util.Validity.Status;
68 …Set<String> remainder = new HashSet<>(Validity.getInstance().getStatusToCodes(LstrType.region).get… in writeContents()
DChartSubdivisionNames.java24 import org.unicode.cldr.util.Validity;
25 import org.unicode.cldr.util.Validity.Status;
83 …Set<String> subdivisions = Validity.getInstance().getStatusToCodes(LstrType.subdivision).get(Statu… in writeSubcharts()
/external/cldr/tools/java/org/unicode/cldr/util/
DValidity.java18 public class Validity { class
27 private static final ConcurrentHashMap<String, Validity> cache = new ConcurrentHashMap<>();
32 public static Validity getInstance() { in getInstance()
36 public static Validity getInstance(String validityDirectory) { in getInstance()
37 Validity result = cache.get(validityDirectory); in getInstance()
39 final Validity value = new Validity(validityDirectory); in getInstance()
48 private Validity(String validityDirectory) { in Validity() method in Validity
DStringRangeTest.java13 import org.unicode.cldr.util.Validity.Status;
143 Validity validity = Validity.getInstance(); in TestWithValidity()
DUnits.java11 import org.unicode.cldr.util.Validity.Status;
59 …Set<String> VALID_UNITS = Validity.getInstance().getStatusToCodes(LstrType.unit).get(Status.regula…
DAttributeValueValidity.java103 Validity validity = Validity.getInstance();
105 final Map<Validity.Status, Set<String>> statusToCodes = validity.getStatusToCodes(key);
114 for (Entry<Validity.Status, Set<String>> item2 : statusToCodes.entrySet()) {
115 Validity.Status status = item2.getKey();
137 …if (status == Validity.Status.regular || status == Validity.Status.special || status == Validity.S…
DMatchValue.java19 import org.unicode.cldr.util.Validity.Status;
293 …for (Entry<String, Status> entry : Validity.getInstance().getCodeToStatus(LstrType.unit).entrySet(… in is()
311 final Status status = Validity.getInstance().getCodeToStatus(type).get(item); in is()
317 return Validity.getInstance().getCodeToStatus(type).keySet().iterator().next(); in getSample()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DDatabindContext.java14 import com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator.Validity;
221 … PolymorphicTypeValidator.Validity vld = ptv.validateSubClassName(config, baseType, subClass); in resolveAndValidateSubType()
222 if (vld == Validity.DENIED) { in resolveAndValidateSubType()
241 if (vld == Validity.INDETERMINATE) { in resolveAndValidateSubType()
243 if (vld != Validity.ALLOWED) { in resolveAndValidateSubType()
258 …PolymorphicTypeValidator.Validity vld = ptv.validateSubClassName(config, baseType, subClass.substr… in _resolveAndValidateGeneric()
259 if (vld == Validity.DENIED) { in _resolveAndValidateGeneric()
267 if (vld != Validity.ALLOWED) { in _resolveAndValidateGeneric()
268 if (ptv.validateSubType(config, baseType, subType) != Validity.ALLOWED) { in _resolveAndValidateGeneric()

123456