public interface AtomicType extends SimpleType, PlainType
SchemaComponent.ValidationStatusItemType.WithSequenceTypeCacheDERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION, DERIVE_BY_SUBSTITUTIONCOMPONENT_FUNCTION_TYPE| Modifier and Type | Method and Description |
|---|---|
default java.util.Optional<java.lang.String> |
explainMismatch(Item item,
TypeHierarchy th)
Get extra diagnostic information about why a supplied item does not conform to this
item type, if available.
|
default Genre |
getGenre()
Determine the Genre (top-level classification) of this type
|
StringConverter<? extends AtomicValue> |
getStringConverter(ConversionRules rules)
Get a StringConverter, an object which converts strings in the lexical space of this
data type to instances (in the value space) of the data type.
|
StructuredQName |
getTypeName()
Get the name of this type as a StructuredQName, unless the type is anonymous, in which case
return null
|
boolean |
isAbstract()
Determine whether the type is abstract, that is, whether it cannot have instances that are not also
instances of some concrete subtype
|
boolean |
isBuiltInType()
Determine whether the atomic type is a built-in type.
|
boolean |
isOrdered(boolean optimistic)
Determine whether the atomic type is ordered, that is, whether less-than and greater-than comparisons
are permitted
|
boolean |
isPrimitiveType()
Determine whether the atomic type is a primitive type.
|
ValidationFailure |
validate(AtomicValue primValue,
java.lang.CharSequence lexicalValue,
ConversionRules rules)
Validate that a primitive atomic value is a valid instance of a type derived from the
same primitive type.
|
getBuiltInBaseType, getTypedValue, getWhitespaceAction, isAtomicType, isExternalType, isListType, isNamespaceSensitive, isUnionType, postprocess, preprocess, validateContentallowsDerivation, analyzeContentExpression, atomize, checkTypeDerivationIsOK, getBaseType, getBlock, getDerivationMethod, getDescription, getDisplayName, getEQName, getFinalProhibitions, getFingerprint, getName, getNearestNamedType, getStructuredQName, getSystemId, getTargetNamespace, isAnonymousType, isComplexType, isIdRefType, isIdType, isSameType, isSimpleTypegetComponentAsFunction, getRedefinitionLevel, getValidationStatusgetPlainMemberTypes, getPrimitiveItemType, isExternalType, matchesgenerateJavaScriptItemTypeAcceptor, generateJavaScriptItemTypeTest, getAtomizedItemType, getPrimitiveType, getUType, isAtomicType, isAtomizable, isPlainType, toExportString, toStringdefault Genre getGenre()
getGenre in interface ItemTypeGenre.ATOMICValidationFailure validate(AtomicValue primValue, java.lang.CharSequence lexicalValue, ConversionRules rules)
primValue - the value in the value space of the primitive type.lexicalValue - the value in the lexical space. If null, the string value of primValue
is used. This value is checked against the pattern facet (if any)rules - the conversion rules for this configurationjava.lang.UnsupportedOperationException - in the case of an external object typeboolean isOrdered(boolean optimistic)
optimistic - if true, the function takes an optimistic view, returning true if ordering comparisons
are available for some subtype. This mainly affects xs:duration, where the function returns true if
optimistic is true, false if it is false.boolean isAbstract()
boolean isPrimitiveType()
boolean isBuiltInType()
isBuiltInType in interface SimpleTypeStructuredQName getTypeName()
getTypeName in interface PlainTypeStringConverter<? extends AtomicValue> getStringConverter(ConversionRules rules)
rules - the conversion rules to be useddefault java.util.Optional<java.lang.String> explainMismatch(Item item, TypeHierarchy th)
explainMismatch in interface ItemTypeitem - the item that doesn't match this typeth - the type hierarchy cacheCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.