|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.document.schema.impl.bca.NBCASet
public final class NBCASet
Represents a mutable normalized BCA (Base, Corrector, AddBase) set.
Constructor Summary | |
---|---|
NBCASet()
Constructs empty NBCA set, that doesn't contain anything. |
|
NBCASet(BasicNcContainer nc)
Constructs NBCA set, that contains same set of items as given nameclass. |
|
NBCASet(NBCASet nbcaSet)
Constructs clone of given NBCASet. |
Method Summary | |
---|---|
void |
complement()
Computes complement of this set. |
boolean |
contains(QName qname)
Checks, whether this qname is contained in this set. |
boolean |
contains(String namespaceUri,
String localName)
Checks, whether this qname is contained in this set. |
boolean |
containsAll()
Tests, whether this set accepts any qname. |
static NBCASet |
create(com.sun.msv.grammar.NameClass nc)
Creates instance of NBCASet, accepting same set of qnames as nc. |
QName |
getItem()
Returns one random item from this set that this set accepts. |
Set<String> |
getLocalNames(String namespaceURI)
Determines all localnames that are accepted by the set with given namespace. |
Set<String> |
getNamespaces()
Obtains a list of namespaces of qnames that are contained in this name list. |
void |
intersect(NBCASet nbcaSet)
Intersects this set with given set. |
boolean |
isEmpty()
Tests if this set contains no qname. |
void |
subtract(NBCASet nbcaSet)
Computes difference of this set and given set. |
String |
toString()
|
void |
union(NBCASet nbcaSet)
Computes union of this set and given set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NBCASet()
public NBCASet(NBCASet nbcaSet)
nbcaSet
- the set to clone.public NBCASet(BasicNcContainer nc)
nc
- the nameclass.Method Detail |
---|
public boolean contains(QName qname)
qname
- the qname to check.
public boolean contains(String namespaceUri, String localName)
namespaceUri
- namespace part of qname to check.localName
- local name part of qname to check.
public boolean containsAll()
public boolean isEmpty()
public QName getItem()
contains
returns. If the set
is empty then null
is returned. The prefix field may not
be set.public void complement()
public void subtract(NBCASet nbcaSet)
nbcaSet
- the set.public void intersect(NBCASet nbcaSet)
nbcaSet
- the set.public void union(NBCASet nbcaSet)
nbcaSet
- the NBCA set.public static NBCASet create(com.sun.msv.grammar.NameClass nc)
nc
- any nameclass to analyze.
NBCASet
instance.public String toString()
toString
in class Object
public Set<String> getNamespaces()
null
.
null
if it cannot be computed and/or represented.
null
namespace is represented as an empty string.public Set<String> getLocalNames(String namespaceURI)
namespaceURI
- all returned localnames are from this namespace
String
s. If there is infinite number of
localnames the function returns null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |