|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.shark.xpdl.XMLElement
org.enhydra.shark.xpdl.XMLComplexChoice
public abstract class XMLComplexChoice
Class that represents choice of complex elements from XML schema.
Field Summary | |
---|---|
protected boolean |
cachesInitialized
|
protected java.util.ArrayList |
choices
|
protected XMLElement |
choosen
|
Fields inherited from class org.enhydra.shark.xpdl.XMLElement |
---|
isReadOnly, listeners, notifyListeners, notifyMainListeners, originalElementHashCode, parent, value |
Constructor Summary | |
---|---|
XMLComplexChoice(XMLComplexElement parent,
java.lang.String name,
boolean isRequired)
|
Method Summary | |
---|---|
void |
clearCaches()
|
java.lang.Object |
clone()
Used to create exact copy of the element. |
boolean |
equals(java.lang.Object e)
|
protected abstract void |
fillChoices()
|
java.util.ArrayList |
getChoices()
The possible choices - instances of XMLElement class. |
XMLElement |
getChoosen()
|
void |
initCaches()
Initializes caches in read-only mode. |
boolean |
isEmpty()
Indicates if element is empty. |
void |
makeAs(XMLElement el)
|
void |
setChoosen(XMLElement ch)
|
void |
setNotifyListeners(boolean notify)
|
void |
setNotifyMainListeners(boolean notify)
|
void |
setReadOnly(boolean ro)
Overrides super-method to set this element and all of its choice elements read only value to the one specified. |
void |
setValue(java.lang.String v)
Sets the element value. |
Methods inherited from class org.enhydra.shark.xpdl.XMLElement |
---|
addListener, createInfo, getListeners, getMainElement, getOriginalElementHashCode, getParent, isMainElement, isReadOnly, isRequired, notifyListeners, notifyMainListeners, removeListener, setParent, toName, toValue |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList choices
protected XMLElement choosen
protected transient boolean cachesInitialized
Constructor Detail |
---|
public XMLComplexChoice(XMLComplexElement parent, java.lang.String name, boolean isRequired)
Method Detail |
---|
public void setValue(java.lang.String v)
XMLElement
setValue
in class XMLElement
public void makeAs(XMLElement el)
makeAs
in class XMLElement
public void setReadOnly(boolean ro)
setReadOnly
in class XMLElement
public void setNotifyListeners(boolean notify)
setNotifyListeners
in class XMLElement
public void setNotifyMainListeners(boolean notify)
setNotifyMainListeners
in class XMLElement
public void initCaches()
public void clearCaches()
public boolean isEmpty()
XMLElement
isEmpty
in class XMLElement
public java.util.ArrayList getChoices()
public XMLElement getChoosen()
public void setChoosen(XMLElement ch)
protected abstract void fillChoices()
public java.lang.Object clone()
XMLElement
clone
in class XMLElement
public boolean equals(java.lang.Object e)
equals
in class XMLElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |