|
|||||||||
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(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. |
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. |
Set |
excludedURIs()
Namespaces that are fully excluded from the set except for a finite number of individual QName exceptions. |
static QNameSet |
forArray(QName[] includedQNames)
Returns a QNameSet based on the given array of included QNames |
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. |
static QNameSet |
forSpecification(QNameSetSpecification spec)
Returns a QNameSet with the same contents as the given QNameSetSpecification. |
static QNameSet |
forWildcardNamespaceString(String wildcard,
String targetURI)
Returns a QNameSet corresponding to the given wildcard namespace string. |
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. |
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(QName name)
Returns a QNameSet containing only the given QName. |
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(Set excludedURIs, Set includedURIs, Set excludedQNamesInIncludedURIs, 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(QName[] includedQNames)
includedQNames
- the array of included QNamespublic static QNameSet forSpecification(QNameSetSpecification spec)
public static QNameSet forWildcardNamespaceString(String wildcard, String targetURI)
public static QNameSet singleton(QName name)
public boolean contains(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 Set excludedURIs()
excludedURIs
in interface QNameSetSpecification
public Set includedURIs()
includedURIs
in interface QNameSetSpecification
public Set excludedQNamesInIncludedURIs()
excludedQNamesInIncludedURIs
in interface QNameSetSpecification
public Set includedQNamesInExcludedURIs()
includedQNamesInExcludedURIs
in interface QNameSetSpecification
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |