|
||||||||||
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.NCSet
public final class NCSet
Represents mutable set of NameClass instances. Qnames set is computed by unification of qnames sets of each nameclass. For each nameclass pair from this set, one nameclass is not subset of another nameclass. Therefore, if ncs contains *:*, then it must be the only one nameclass it contains.
Constructor Summary | |
---|---|
NCSet()
Creates an empty set, that accepts nothing. |
|
NCSet(BasicNcContainer nc)
Creates set, that accepts same set as nc do. |
|
NCSet(NCSet ncSet)
Creates set, that accepts same set as ncSet do. |
Method Summary | |
---|---|
void |
clear()
Clears this set. |
boolean |
contains(BasicNcContainer nameclass)
Returns true if qname set, generated by given nameclass, is subset of qname set generated by this set. |
boolean |
contains(QName qname)
Returns true if given qname is accepted by this set. |
boolean |
contains(String namespaceUri,
String localName)
Returns true if given qname is accepted by this set. |
boolean |
containsAll()
Checks, whether this set accepts anything. |
boolean |
containsLocalNC(String local)
Returns true if qname set, generated by local nameclass, is subset of qname set generated by this set. |
boolean |
containsNamespaceNC(String namespaceURI)
Returns true if qname set, generated by namespace nameclass, is subset of qname set generated by this set. |
Set<BasicNcContainer> |
getSameNcs(NCSet set)
Returns set of nameclasses, that are both in this set and given set. |
void |
intersect(BasicNcContainer nc)
Computes intersection of this set and given nameclass. |
void |
intersect(NCSet ncSet)
Computes intersection of this set and given set. |
boolean |
isEmpty()
Checks, whether this set accepts no qnames. |
Iterator<BasicNcContainer> |
iterator()
Returns iterator, that iterates over BasicNcContainer
objects. |
void |
removeNcs(NCSet set)
Removes all rules, that are both in this set and given set. |
void |
removeNcs(Set set)
Removes all rules, that are both in this set and given set. |
int |
size()
Returns the size of the set. |
String |
toString()
|
void |
union(BasicNcContainer nc)
Computes union of this set and given nameclass. |
void |
union(NCSet set)
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 NCSet()
public NCSet(BasicNcContainer nc)
nc
- nameclass.public NCSet(NCSet ncSet)
ncSet
- nameclass set.Method Detail |
---|
public boolean contains(QName qname)
qname
- 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 contains(BasicNcContainer nameclass)
nameclass
- nameclass to check.
public boolean containsNamespaceNC(String namespaceURI)
namespaceURI
- the namespace of the nameclass
public boolean containsLocalNC(String local)
local
- the local name of the qnames.
public boolean containsAll()
BasicNcContainer
, the
BasicNcContainer.BASIC_NC_ALL
nameclass.
public boolean isEmpty()
public void union(NCSet set)
set
- the set.public void union(BasicNcContainer nc)
nc
- the nameclass.public void intersect(BasicNcContainer nc)
nc
- the nameclass.public void intersect(NCSet ncSet)
ncSet
- the nameclass set.public void clear()
public Iterator<BasicNcContainer> iterator()
BasicNcContainer
objects.
iterator
in interface Iterable<BasicNcContainer>
public Set<BasicNcContainer> getSameNcs(NCSet set)
set
- the set.
public void removeNcs(Set set)
set
- the set.public void removeNcs(NCSet set)
set
- the set.public String toString()
toString
in class Object
public int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |