|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.msv.grammar.ReferenceContainer
Container of ReferenceExp. a map from name to ReferenceExp.
Constructor Summary | |
ReferenceContainer()
|
Method Summary | |
ReferenceExp |
_get(String name)
gets a referenced expression Derived class should provide type-safe accesser methods. |
ReferenceExp |
_getOrCreate(String name)
gets or creates ReferenceExp object. |
ReferenceExp[] |
getAll()
obtains all items in this container. |
Iterator |
iterator()
iterates all ReferenceExp in this container |
void |
redefine(String name,
ReferenceExp newExp)
replaces the current ReferenceExp by newly specified reference exp. |
ReferenceExp |
remove(String name)
removes an object from this container. |
int |
size()
gets the number of ReferenceExps in this container. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReferenceContainer()
Method Detail |
public final ReferenceExp _getOrCreate(String name)
_get
method is probably what you need.public void redefine(String name, ReferenceExp newExp)
public final ReferenceExp _get(String name)
public final Iterator iterator()
public final ReferenceExp[] getAll()
public final ReferenceExp remove(String name)
public final int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |