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

All Implemented Interfaces:
    QNameSetSpecification, java$io$Serializable

This interface represents a lattice of finite and infinite sets of QNames. The lattice the minimal one that is closed under union, intersection, and inverse, and contains individual QNames as well as entire namespaces. Here is a summary of the two kinds of QNameSets:

Notice that a finite set of QNames is a degenerate case of the first category outlined above:

Field Summary
public static final  QNameSet EMPTY    The empty QNameSet. 
public static final  QNameSet ALL    The QNameSet containing all QNames. 
public static final  QNameSet LOCAL    The QNameSet containing all QNames in the local (no-)namespace. 
public static final  QNameSet NONLOCAL    The QNameSet containing all QNames except for those in the local (no-)namespace. 
Method from org.apache.xmlbeans.QNameSet Summary:
contains,   containsAll,   excludedQNamesInIncludedURIs,   excludedURIs,   forArray,   forSets,   forSpecification,   forWildcardNamespaceString,   includedQNamesInExcludedURIs,   includedURIs,   intersect,   inverse,   isAll,   isDisjoint,   isEmpty,   singleton,   toString,   union
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.QNameSet Detail:
 public boolean contains(QName name) 
    True if this ModelTransitionSet contains the given qname.
 public boolean containsAll(QNameSetSpecification set) 
    True if the given set is a subset of this one.
 public Set excludedQNamesInIncludedURIs() 
    The set of QNames excluded from the set even though they are within a namespace that is otherwise fully included in the set.
 public Set excludedURIs() 
    Namespaces that are fully excluded from the set except for a finite number of individual QName exceptions. Returns null if this set is infinite.
 public static QNameSet forArray(QName[] includedQNames) 
    Returns a QNameSet based on the given array of included QNames
 public static QNameSet forSets(Set excludedURIs,
    Set includedURIs,
    Set excludedQNamesInIncludedURIs,
    Set includedQNamesInExcludedURIs) 
    Returns a QNameSet based on the given sets of excluded URIs, included URIs, excluded QNames in included namespaces, and included QNames in excluded namespaces.
 public static QNameSet forSpecification(QNameSetSpecification spec) 
    Returns a QNameSet with the same contents as the given QNameSetSpecification.
 public static QNameSet forWildcardNamespaceString(String wildcard,
    String targetURI) 
    Returns a QNameSet corresponding to the given wildcard namespace string. This is a space-separated list of URIs, plus special tokens as specified in the XML Schema specification (##any, ##other, ##targetNamespace, ##local).
 public Set includedQNamesInExcludedURIs() 
    The set of QNames included in the set even though they are within a namespace that is otherwise fully included in the set.
 public Set includedURIs() 
    Namespaces that are fully included in set except for a finite number of individual QName exceptions. Returns null if this set is infinite.
 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 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 static QNameSet singleton(QName name) 
    Returns a QNameSet containing only the given QName.
 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.