Class TypeClosure

  • public class TypeClosure
    extends TypeSet
    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.
    Ryan Shoemaker, Sun Microsystems, Inc.
    • Constructor Summary

      Constructor Description
      TypeClosure​(TypeSet typeSet)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(XSType type)
      Return true if this TypeSet contains the specified type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypeClosure

        public TypeClosure​(TypeSet typeSet)
    • Method Detail

      • contains

        public boolean contains​(XSType type)
        Description copied from class: TypeSet
        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.
        Specified by:
        contains in class TypeSet
        type - the type
        true iff this TypeSet contains the specified type