|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.QNameSet
public final class QNameSet
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:
QNameSetBuilder
,
Serialized FormField Summary | |
---|---|
static QNameSet |
ALL
The QNameSet containing all QNames. |
static QNameSet |
EMPTY
The empty QNameSet. |
static QNameSet |
LOCAL
The QNameSet containing all QNames in the local (no-)namespace. |
static QNameSet |
NONLOCAL
The QNameSet containing all QNames except for those in the local (no-)namespace. |
Method Summary | |
---|---|
boolean |
contains(javax.xml.namespace.QName name)
True if this ModelTransitionSet contains the given qname. |
boolean |
containsAll(QNameSetSpecification set)
True if the given set is a subset of this one. |
java.util.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. |
java.util.Set |
excludedURIs()
Namespaces that are fully excluded from the set except for a finite number of individual QName exceptions. |
static QNameSet |
forArray(javax.xml.namespace.QName[] includedQNames)
Returns a QNameSet based on the given array of included QNames |
static QNameSet |
forSets(java.util.Set excludedURIs,
java.util.Set includedURIs,
java.util.Set excludedQNamesInIncludedURIs,
java.util.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. |
static QNameSet |
forSpecification(QNameSetSpecification spec)
Returns a QNameSet with the same contents as the given QNameSetSpecification. |
static QNameSet |
forWildcardNamespaceString(java.lang.String wildcard,
java.lang.String targetURI)
Returns a QNameSet corresponding to the given wildcard namespace string. |
java.util.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. |
java.util.Set |
includedURIs()
Namespaces that are fully included in set except for a finite number of individual QName exceptions. |
QNameSet |
intersect(QNameSetSpecification set)
Returns a new QNameSet that is the intersection of this one and another. |
QNameSet |
inverse()
Returns a new QNameSet that is the inverse of this one. |
boolean |
isAll()
True if this ModelTransitionSet contains all QNames. |
boolean |
isDisjoint(QNameSetSpecification set)
True if the given set is disjoint from this one. |
boolean |
isEmpty()
True if this ModelTransitionSet contains no QNames. |
static QNameSet |
singleton(javax.xml.namespace.QName name)
Returns a QNameSet containing only the given QName. |
java.lang.String |
toString()
Returns a string representation useful for debugging, subject to change. |
QNameSet |
union(QNameSetSpecification set)
Returns a new QNameSet that is the union of this one and another. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QNameSet EMPTY
public static final QNameSet ALL
public static final QNameSet LOCAL
public static final QNameSet NONLOCAL
Method Detail |
---|
public static QNameSet forSets(java.util.Set excludedURIs, java.util.Set includedURIs, java.util.Set excludedQNamesInIncludedURIs, java.util.Set includedQNamesInExcludedURIs)
excludedURIs
- the finite set of namespace URI strings to exclude from the set, or null if this set is infiniteincludedURIs
- the finite set of namespace URI strings to include in the set, or null if this set is infiniteexcludedQNamesInIncludedURIs
- the finite set of exceptional QNames to exclude from the included namespacesexcludedQNamesInIncludedURIs
- the finite set of exceptional QNames to include that are in the excluded namespaces
public static QNameSet forArray(javax.xml.namespace.QName[] includedQNames)
includedQNames
- the array of included QNamespublic static QNameSet forSpecification(QNameSetSpecification spec)
public static QNameSet forWildcardNamespaceString(java.lang.String wildcard, java.lang.String targetURI)
public static QNameSet singleton(javax.xml.namespace.QName name)
public boolean contains(javax.xml.namespace.QName name)
contains
in interface QNameSetSpecification
public boolean isAll()
isAll
in interface QNameSetSpecification
public boolean isEmpty()
isEmpty
in interface QNameSetSpecification
public QNameSet intersect(QNameSetSpecification set)
intersect
in interface QNameSetSpecification
set
- the set to insersect with
public QNameSet union(QNameSetSpecification set)
union
in interface QNameSetSpecification
set
- the set to union with
public QNameSet inverse()
inverse
in interface QNameSetSpecification
public boolean containsAll(QNameSetSpecification set)
containsAll
in interface QNameSetSpecification
set
- the set to test
public boolean isDisjoint(QNameSetSpecification set)
isDisjoint
in interface QNameSetSpecification
set
- the set to test
public java.util.Set excludedURIs()
excludedURIs
in interface QNameSetSpecification
public java.util.Set includedURIs()
includedURIs
in interface QNameSetSpecification
public java.util.Set excludedQNamesInIncludedURIs()
excludedQNamesInIncludedURIs
in interface QNameSetSpecification
public java.util.Set includedQNamesInExcludedURIs()
includedQNamesInExcludedURIs
in interface QNameSetSpecification
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |