|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.QNameSetBuilder
public class 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(java.util.Set excludedURIs,
java.util.Set includedURIs,
java.util.Set excludedQNamesInIncludedURIs,
java.util.Set includedQNamesInExcludedURIs)
Constructs a QNameSetBuilder whose inital contents are given by the four sets. |
|
QNameSetBuilder(java.lang.String str,
java.lang.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(javax.xml.namespace.QName qname)
Adds a single QName to this QNameSetBuilder. |
void |
addAll(QNameSetSpecification set)
Adds the contents of another QNameSet to this QNameSetBuilder. |
void |
addNamespace(java.lang.String uri)
Adds an entire namespace URI of QNames to this QNameSetBuilder. |
void |
clear()
Clears this QNameSetBuilder |
boolean |
contains(javax.xml.namespace.QName name)
True if this ModelTransitionSet contains the given qname. |
boolean |
containsAll(QNameSetSpecification set)
True if the parameter is a subset of this set. |
java.util.Set |
excludedQNamesInIncludedURIs()
The finite set of QNames that are excluded from the set within namespaces that are otherwise included. |
java.util.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). |
java.util.Set |
includedQNamesInExcludedURIs()
The finite set of QNames that are included in the set within namespaces that are otherwise excluded. |
java.util.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(javax.xml.namespace.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(java.lang.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. |
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 |
Constructor Detail |
---|
public QNameSetBuilder()
public QNameSetBuilder(QNameSetSpecification set)
set
- the QNameSetSpecificaiton to copypublic QNameSetBuilder(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 namespacespublic QNameSetBuilder(java.lang.String str, java.lang.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(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
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(javax.xml.namespace.QName qname)
public void addNamespace(java.lang.String uri)
public void addAll(QNameSetSpecification set)
public void remove(javax.xml.namespace.QName qname)
public void removeNamespace(java.lang.String uri)
public void removeAll(QNameSetSpecification set)
public void restrict(QNameSetSpecification set)
public java.util.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 java.util.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 java.util.Set excludedQNamesInIncludedURIs()
QNameSetSpecification
Never null.
The same set as inverse().includedQNames().
excludedQNamesInIncludedURIs
in interface QNameSetSpecification
public java.util.Set includedQNamesInExcludedURIs()
QNameSetSpecification
Never null.
The same as inverse().excludedQNames().
includedQNamesInExcludedURIs
in interface QNameSetSpecification
public java.lang.String toString()
toString
in class java.lang.Object
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 |