Class SimpleTypeSet

java.lang.Object
com.sun.xml.xsom.util.TypeSet
com.sun.xml.xsom.util.SimpleTypeSet

public class SimpleTypeSet extends TypeSet
A very simple TypeSet. The contains method returns true if the set explicitly contains an instance of the specified XSType.
Author:
Ryan Shoemaker, Sun Microsystems, Inc.
  • Constructor Details

    • SimpleTypeSet

      public SimpleTypeSet(Set s)
  • Method Details

    • 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
      Parameters:
      type - the type
      Returns:
      true iff this TypeSet contains the specified type