| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.type.TypeHierarchy
public class TypeHierarchy
This class exists to provide answers to questions about the type hierarchy. Because such questions are potentially expensive, it caches the answers.
| Field Summary | |
|---|---|
static int | 
DISJOINT
Constant denoting relationship between two types: A is disjoint from B  | 
static int | 
OVERLAPS
Constant denoting relationship between two types: A overlaps B  | 
static int | 
SAME_TYPE
Constant denoting relationship between two types: A is the same type as B  | 
static int | 
SUBSUMED_BY
Constant denoting relationship between two types: A is subsumed by B  | 
static int | 
SUBSUMES
Constant denoting relationship between two types: A subsumes B  | 
| Constructor Summary | |
|---|---|
TypeHierarchy(Configuration config)
 | 
|
| Method Summary | |
|---|---|
 Configuration | 
getConfiguration()
 | 
 boolean | 
isIdCode(int typeCode)
Test whether a type annotation code represents the type xs:ID or one of its subtypes  | 
 boolean | 
isIdrefsCode(int typeCode)
Test whether a type annotation code represents the type xs:IDREF, xs:IDREFS or one of their subtypes  | 
 boolean | 
isSubType(ItemType subtype,
          ItemType supertype)
Determine whether type A is type B or one of its subtypes, recursively  | 
 int | 
relationship(ItemType t1,
             ItemType t2)
Determine the relationship of one item type to another.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int SAME_TYPE
public static final int SUBSUMES
public static final int SUBSUMED_BY
public static final int OVERLAPS
public static final int DISJOINT
| Constructor Detail | 
|---|
public TypeHierarchy(Configuration config)
| Method Detail | 
|---|
public Configuration getConfiguration()
public boolean isSubType(ItemType subtype,
                         ItemType supertype)
subtype - identifies the first typesupertype - identifies the second type
public int relationship(ItemType t1,
                        ItemType t2)
t1 - the first item typet2 - the second item type
SAME_TYPE if the types are the same; SUBSUMES if the first
 type subsumes the second (that is, all instances of the second type are also instances
 of the first); SUBSUMED_BY if the second type subsumes the first;
 OVERLAPS if the two types overlap (have a non-empty intersection, but neither
 subsumes the other); DISJOINT if the two types are disjoint (have an empty intersection)public boolean isIdCode(int typeCode)
public boolean isIdrefsCode(int typeCode)
  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||