XSOM 20110809-redhat-3

com.sun.xml.xsom.util
Class SimpleTypeSet

java.lang.Object
  extended by com.sun.xml.xsom.util.TypeSet
      extended by 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 Summary
SimpleTypeSet(Set s)
           
 
Method Summary
 boolean contains(XSType type)
          Return true if this TypeSet contains the specified type.
 
Methods inherited from class com.sun.xml.xsom.util.TypeSet
intersection, union
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTypeSet

public SimpleTypeSet(Set s)
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
Parameters:
type - the type
Returns:
true iff this TypeSet contains the specified type

XSOM 20110809-redhat-3

Copyright © 2012 Oracle. All Rights Reserved.