|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.QNameSetBuilder
Used to build QNameSets
.
Constructor Summary | |
QNameSetBuilder()
Constructs an empty QNameSetBuilder. |
|
QNameSetBuilder(QNameSetSpecification set)
Constructs a QNameSetBuilder whose initial contents are given by another QNameSetSpecification. |
|
QNameSetBuilder(Set excludedURIs,
Set includedURIs,
Set excludedQNamesInIncludedURIs,
Set includedQNamesInExcludedURIs)
Constructs a QNameSetBuilder whose inital contents are given by the four sets. |
|
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. |
Method Summary | |
void |
add(QName qname)
Adds a single QName to this QNameSetBuilder. |
void |
addAll(QNameSetSpecification set)
Adds the contents of another QNameSet to this QNameSetBuilder. |
void |
addNamespace(String uri)
Adds an entire namespace URI of QNames to this QNameSetBuilder. |
void |
clear()
Clears this QNameSetBuilder |
boolean |
contains(QName name)
True if this ModelTransitionSet contains the given qname. |
boolean |
containsAll(QNameSetSpecification set)
True if the parameter is a subset of this set. |
Set |
excludedQNamesInIncludedURIs()
The finite set of QNames that are excluded from the set within namespaces that are otherwise included. |
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). |
Set |
includedQNamesInExcludedURIs()
The finite set of QNames that are included in the set within namespaces that are otherwise excluded. |
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). |
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. |
void |
invert()
Inverts this QNameSetBuilder. |
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. |
void |
remove(QName qname)
Removes the given qname from this QNameSetBuilder. |
void |
removeAll(QNameSetSpecification set)
Removes all contents of a given QNameSet from this QNameSetBuilder. |
void |
removeNamespace(String uri)
Removes an entire namespace URI from this QNameSetBuilder. |
void |
restrict(QNameSetSpecification set)
Restricts the contents of this QNameSetBuilder to be a subset of the given QNameSet. |
QNameSet |
toQNameSet()
Returns a QNameSet equivalent to the current state of this
QNameSetBuilder. |
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 |
Constructor Detail |
public QNameSetBuilder()
public QNameSetBuilder(QNameSetSpecification set)
set
- the QNameSetSpecificaiton to copypublic QNameSetBuilder(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 namespacespublic QNameSetBuilder(String str, String targetURI)
str
- a wildcard namespace specification string such as "##any",
"##other", "##local", "##targetNamespace", or a space-separated
list of URIs.targetURI
- the current targetNamespaceMethod Detail |
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
public QNameSet union(QNameSetSpecification set)
union
in interface QNameSetSpecification
public QNameSet inverse()
inverse
in interface QNameSetSpecification
public boolean containsAll(QNameSetSpecification set)
containsAll
in interface QNameSetSpecification
public boolean isDisjoint(QNameSetSpecification set)
isDisjoint
in interface QNameSetSpecification
public void clear()
public void invert()
public void add(QName qname)
public void addNamespace(String uri)
public void addAll(QNameSetSpecification set)
public void remove(QName qname)
public void removeNamespace(String uri)
public void removeAll(QNameSetSpecification set)
public void restrict(QNameSetSpecification set)
public Set excludedURIs()
QNameSetSpecification
Null (meaning almost all URIs excluded) if includedURIs() is non-null; non-null otherwise.
The same set as inverse().includedURIs().
excludedURIs
in interface QNameSetSpecification
public Set includedURIs()
QNameSetSpecification
Null (meaning almost all URIs included) if excludedURIs() is non-null; non-null otherwise.
The same as inverse.excludedURIs().
includedURIs
in interface QNameSetSpecification
public Set excludedQNamesInIncludedURIs()
QNameSetSpecification
Never null.
The same set as inverse().includedQNames().
excludedQNamesInIncludedURIs
in interface QNameSetSpecification
public Set includedQNamesInExcludedURIs()
QNameSetSpecification
Never null.
The same as inverse().excludedQNames().
includedQNamesInExcludedURIs
in interface QNameSetSpecification
public String toString()
public QNameSet toQNameSet()
QNameSet
equivalent to the current state of this
QNameSetBuilder.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |