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

public Class TypeClosure

extends TypeSet
Class Inheritance
Imports
com.sun.xml.xsom.XSType

Perform a transitive closure operation on a type to determine if it belongs to this set. The contains method returns true if the TypeSet contains an instance of the specified XSType or any of the base types of the XSType.
Author
Ryan Shoemaker, Sun Microsystems, Inc.

Field Summary

Modifier and TypeField and Description
private final TypeSet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(XSType type)

Implements abstract com.sun.xml.xsom.util.TypeSet.contains.

Return true if this TypeSet contains the specified type.

Inherited from com.sun.xml.xsom.util.TypeSet:
intersectionunion

Field Detail

typeSetback to summary
private final TypeSet typeSet

Constructor Detail

TypeClosureback to summary
public TypeClosure(TypeSet typeSet)

Method Detail

containsback to summary
public boolean contains(XSType type)

Implements abstract com.sun.xml.xsom.util.TypeSet.contains.

Doc from com.sun.xml.xsom.util.TypeSet.contains.

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.