|
||||||||||
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.BasicNcContainer
public final class BasicNcContainer
Immutable container of basic nameclass (one of SimpleNameClass
,
NamespaceNameClass
,NameClass.ALL
and
LocalNameClass
). Implements the equals()
and
hashCode()
functions in order to be insertable into
Set
. The equals()
function has also semantic
of set equals: it returns true if and only if both nameclasses accepts same
set of qnames.
Field Summary | |
---|---|
static BasicNcContainer |
BASIC_NC_ALL
Contains singleton instance of nameclass, that accepts anything. |
com.sun.msv.grammar.NameClass |
nameclass
Enclosed basic nameclass. |
NcTypeEnum |
type
Type of enclosed basic nameclass, one of NCTYPE_*
constants. |
Method Summary | |
---|---|
boolean |
accepts(QName qname)
Checks if this nameclass accepts given qname. |
boolean |
accepts(String namespaceUri,
String localPart)
Checks if this nameclass accepts given qname. |
boolean |
equals(Object obj)
|
static BasicNcContainer |
getInstance(com.sun.msv.grammar.NameClass nameclass)
Creates new container. |
int |
hashCode()
|
BasicNcContainer |
intersection(BasicNcContainer nc)
Computes intersection of our nameclass and given nameclass. |
boolean |
isSubsetOf(BasicNcContainer nc)
Checks, whether this nameclass is subset of given basic nameclass. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final com.sun.msv.grammar.NameClass nameclass
public final NcTypeEnum type
NCTYPE_*
constants.
public static final BasicNcContainer BASIC_NC_ALL
Method Detail |
---|
public static BasicNcContainer getInstance(com.sun.msv.grammar.NameClass nameclass)
BASIC_NC_ALL
when nameclass
accepts anything.
nameclass
- container will represent this basic nameclass.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean isSubsetOf(BasicNcContainer nc)
nc
- basic nameclass to check.
public BasicNcContainer intersection(BasicNcContainer nc)
nc
- basic nameclass.
null
, if
result is an empty set.public boolean accepts(QName qname)
qname
- qname to check.
public boolean accepts(String namespaceUri, String localPart)
namespaceUri
- urilocalPart
- local name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |