Home » xmlbeans-2.5.0-src » org.apache » xmlbeans » [javadoc | source]
org.apache.xmlbeans
public class: QNameSetBuilder [javadoc | source]
java.lang.Object
   org.apache.xmlbeans.QNameSetBuilder

All Implemented Interfaces:
    QNameSetSpecification, java$io$Serializable

Used to build QNameSets .
Constructor:
 public QNameSetBuilder() 
 public QNameSetBuilder(QNameSetSpecification set) 
    Constructs a QNameSetBuilder whose initial contents are given by another QNameSetSpecification.
    Parameters:
    set - the QNameSetSpecificaiton to copy
 public QNameSetBuilder(String str,
    String targetURI) 
    Constructs a QNameSetBuilder whose initial contents are given as a list of namespace URIs, using the same format used by wildcards in XSD files.
    Parameters:
    str - a wildcard namespace specification string such as "##any", "##other", "##local", "##targetNamespace", or a space-separated list of URIs.
    targetURI - the current targetNamespace
 public QNameSetBuilder(Set excludedURIs,
    Set includedURIs,
    Set excludedQNamesInIncludedURIs,
    Set includedQNamesInExcludedURIs) 
    Constructs a QNameSetBuilder whose inital contents are given by the four sets. Exactly one of either excludedURIs or includedURIs must be non-null.
    Parameters:
    excludedURIs - the finite set of namespace URI strings to exclude from the set, or null if this set is infinite
    includedURIs - the finite set of namespace URI strings to include in the set, or null if this set is infinite
    excludedQNamesInIncludedURIs - the finite set of exceptional QNames to exclude from the included namespaces
    excludedQNamesInIncludedURIs - the finite set of exceptional QNames to include that are in the excluded namespaces
Method from org.apache.xmlbeans.QNameSetBuilder Summary:
add,   addAll,   addNamespace,   clear,   contains,   containsAll,   excludedQNamesInIncludedURIs,   excludedURIs,   includedQNamesInExcludedURIs,   includedURIs,   intersect,   inverse,   invert,   isAll,   isDisjoint,   isEmpty,   remove,   removeAll,   removeNamespace,   restrict,   toQNameSet,   toString,   union
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.QNameSetBuilder Detail:
 public  void add(QName qname) 
    Adds a single QName to this QNameSetBuilder.
 public  void addAll(QNameSetSpecification set) 
    Adds the contents of another QNameSet to this QNameSetBuilder.
 public  void addNamespace(String uri) 
    Adds an entire namespace URI of QNames to this QNameSetBuilder. The empty string is used to signifiy the (local) no-namespace.
 public  void clear() 
    Clears this QNameSetBuilder
 public boolean contains(QName name) 
    True if this ModelTransitionSet contains the given qname.
 public boolean containsAll(QNameSetSpecification set) 
    True if the parameter is a subset of this set.
 public Set excludedQNamesInIncludedURIs() 
 public Set excludedURIs() 
 public Set includedQNamesInExcludedURIs() 
 public Set includedURIs() 
 public QNameSet intersect(QNameSetSpecification set) 
    Returns a new QNameSet that is the intersection of this one and another.
 public QNameSet inverse() 
    Returns a new QNameSet that is the inverse of this one.
 public  void invert() 
    Inverts this QNameSetBuilder.
 public boolean isAll() 
    True if this ModelTransitionSet contains all QNames.
 public boolean isDisjoint(QNameSetSpecification set) 
    True if the given set is disjoint from this one.
 public boolean isEmpty() 
    True if this ModelTransitionSet contains no QNames.
 public  void remove(QName qname) 
    Removes the given qname from this QNameSetBuilder.
 public  void removeAll(QNameSetSpecification set) 
    Removes all contents of a given QNameSet from this QNameSetBuilder.
 public  void removeNamespace(String uri) 
    Removes an entire namespace URI from this QNameSetBuilder.
 public  void restrict(QNameSetSpecification set) 
    Restricts the contents of this QNameSetBuilder to be a subset of the given QNameSet. In other words, computes an intersection.
 public QNameSet toQNameSet() 
    Returns a QNameSet equivalent to the current state of this QNameSetBuilder.
 public String toString() 
    Returns a string representation useful for debugging, subject to change.
 public QNameSet union(QNameSetSpecification set) 
    Returns a new QNameSet that is the union of this one and another.