| java.lang.Object com.sun.xml.xsom.util.TypeSet
All known Subclasses: com.sun.xml.xsom.util.TypeClosure, com.sun.xml.xsom.util.SimpleTypeSet,
TypeSet | abstract public class TypeSet (Code) | | A simple abstraction for a set of Types that defines containment functions.
author: Ryan Shoemaker, Sun Microsystems, Inc. |
Method Summary | |
abstract public boolean | contains(XSType type) Return true if this TypeSet contains the specified type. | public static TypeSet | intersection(TypeSet a, TypeSet b) Calculate the TypeSet formed by the intersection of two
other TypeSet objects. | public static TypeSet | union(TypeSet a, TypeSet b) Calculate the TypeSet formed by the union of two
other TypeSet objects. |
contains | abstract public boolean contains(XSType type)(Code) | | Return true if this TypeSet contains the specified type.
Concrete implementations of this method determine what it
means for the TypeSet to "contain" a type.
Parameters: type - the type true iff this TypeSet contains the specified type |
intersection | public static TypeSet intersection(TypeSet a, TypeSet b)(Code) | | Calculate the TypeSet formed by the intersection of two
other TypeSet objects.
Parameters: a - a TypeSet Parameters: b - another TypeSet the intersection of a and b |
union | public static TypeSet union(TypeSet a, TypeSet b)(Code) | | Calculate the TypeSet formed by the union of two
other TypeSet objects.
Parameters: a - a TypeSet Parameters: b - another TypeSet the union of a and b |
|
|