Package com.saxonica.ee.config
Class SubsumptionEE
java.lang.Object
net.sf.saxon.type.TypeHierarchy
com.saxonica.ee.config.SubsumptionEE
Refinement of the TypeHierarchy class to handle schema-aware types such as schema-element(A).
-
Field Summary
Fields inherited from class net.sf.saxon.type.TypeHierarchy
config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AffinityCompute the relationship between the allowed content-types of two typesCompare two item types if one is a schema-element or schema-attribute tests.Methods inherited from class net.sf.saxon.type.TypeHierarchy
getConfiguration, getNearestNamedType, isSubType, normalizeItemType, relationship, toSet
-
Constructor Details
-
SubsumptionEE
-
-
Method Details
-
computeContentRelationship
Compute the relationship between the allowed content-types of two types- Parameters:
t1- the first typet2- the second type- Returns:
- the relationship, as one of the constants
Affinity.SAME_TYPE,Affinity.SUBSUMES,Affinity.SUBSUMED_BY,Affinity.DISJOINT,Affinity.OVERLAPS
-
schemaDeclarationAffinity
Compare two item types if one is a schema-element or schema-attribute tests. This method is implemented in a subclass for Saxon-EE: without schema-awareness, such tests do not arise.- Parameters:
t1- the first item typet2- the second item type- Returns:
- the relationship between the two, if one is a schema-element or schema-attribute test; otherwise Optional.empty().
-