Top Description Constructors Methods
com.sun.xml.xsom.util

public abstract Class TypeSet

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.xml.xsom.util.SimpleTypeSet, com.sun.xml.xsom.util.TypeClosure
Imports
com.sun.xml.xsom.XSType

A simple abstraction for a set of Types that defines containment functions.
Author
Ryan Shoemaker, Sun Microsystems, Inc.

Constructor Summary

AccessConstructor and Description
protected
TypeSet()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public abstract boolean

Returns:

true iff this TypeSet contains the specified type
contains
(XSType
the type
type
)

Return true if this TypeSet contains the specified type.

public static TypeSet

Returns:

the intersection of a and b
intersection
(final TypeSet
a TypeSet
a
,
final TypeSet
another TypeSet
b
)

Calculate the TypeSet formed by the intersection of two other TypeSet objects.

public static TypeSet

Returns:

the union of a and b
union
(final TypeSet
a TypeSet
a
,
final TypeSet
another TypeSet
b
)

Calculate the TypeSet formed by the union of two other TypeSet objects.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TypeSetback to summary
protected TypeSet()

Default constructor.

Method Detail

containsback to summary
public abstract boolean contains(XSType type)

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:XSType

the type

Returns:boolean

true iff this TypeSet contains the specified type

intersectionback to summary
public static TypeSet intersection(final TypeSet a, final TypeSet b)

Calculate the TypeSet formed by the intersection of two other TypeSet objects.

Parameters
a:TypeSet

a TypeSet

b:TypeSet

another TypeSet

Returns:TypeSet

the intersection of a and b

unionback to summary
public static TypeSet union(final TypeSet a, final TypeSet b)

Calculate the TypeSet formed by the union of two other TypeSet objects.

Parameters
a:TypeSet

a TypeSet

b:TypeSet

another TypeSet

Returns:TypeSet

the union of a and b