Home » xmlbeans-2.5.0-src » org.apache » xmlbeans » [javadoc | source]
org.apache.xmlbeans
public interface: QNameSetSpecification [javadoc | source]

All Known Implementing Classes:
    QNameSetBuilder, QNameSet

Represents a lattice of finite and infinite sets of QNames.
Method from org.apache.xmlbeans.QNameSetSpecification Summary:
contains,   containsAll,   excludedQNamesInIncludedURIs,   excludedURIs,   includedQNamesInExcludedURIs,   includedURIs,   intersect,   inverse,   isAll,   isDisjoint,   isEmpty,   union
Method from org.apache.xmlbeans.QNameSetSpecification Detail:
 public boolean contains(QName name)
    True if the set contains the given QName. Roughly equivalent to: (includedURIs() == null ? excludedURIs().contains(namespace) : includedURIs().contains(namespace) ) ? !excludedQNamesInIncludedURIs().contains(name) : includedQNamesInExcludedURIs().contains(name)
 public boolean containsAll(QNameSetSpecification set)
    True if the parameter is a subset of this set.
 public Set excludedQNamesInIncludedURIs()
    The finite set of QNames that are excluded from the set within namespaces that are otherwise included. Should only contain QNames within namespace that are within the set includedURIs() (or any URI, if includedURIs() is null, which means that all URIs are almost completely included).

    Never null.

    The same set as inverse().includedQNames().

 public Set excludedURIs()
    The finite set of namespace URIs that are almost completely excluded from the set (that is, each namespace URI that included in the set with with a finite number of QName exceptions). Null if the set of namespaceURIs that are almost completely included is infinite.

    Null (meaning almost all URIs excluded) if includedURIs() is non-null; non-null otherwise.

    The same set as inverse().includedURIs().

 public Set includedQNamesInExcludedURIs()
    The finite set of QNames that are included in the set within namespaces that are otherwise excluded. Should only contain QNames within namespace that are within the set excludedURIs() (or any URI, if excludedURIs() is null, which means that all URIs are almost completely excluded).

    Never null.

    The same as inverse().excludedQNames().

 public Set includedURIs()
    The finite set of namespace URIs that are almost completely included in the set (that is, each namespace URI that included in the set with with a finite number of QName exceptions). Null if the set of namespaceURIs that are almost completely included is infinite.

    Null (meaning almost all URIs included) if excludedURIs() is non-null; non-null otherwise.

    The same as inverse.excludedURIs().

 public QNameSet intersect(QNameSetSpecification set)
    Returns the intersection with another QNameSet.
 public QNameSet inverse()
    Return the inverse of this QNameSet. That is the QNameSet which contains all the QNames not contained in this set. In other words for which set.contains(name) != set.inverse().contains(name) for all names.
 public boolean isAll()
    True if the set is the set of all QNames.
 public boolean isDisjoint(QNameSetSpecification set)
    True if is disjoint from the specified set.
 public boolean isEmpty()
    True if the set is empty.
 public QNameSet union(QNameSetSpecification set)
    Returns the union with another QNameSet.