|
|||||||||
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.XMLBaseForCollectionAndComplex
public abstract class XMLBaseForCollectionAndComplex
Base class for implementing XMLComplexElement and XMLCollection classes.
Field Summary | |
---|---|
protected boolean |
cachesInitialized
|
protected org.enhydra.shark.utilities.SequencedHashMap |
elementMap
|
protected java.util.ArrayList |
elements
|
Fields inherited from class org.enhydra.shark.xpdl.XMLElement |
---|
isReadOnly, listeners, notifyListeners, notifyMainListeners, originalElementHashCode, parent, value |
Constructor Summary | |
---|---|
XMLBaseForCollectionAndComplex(XMLElement parent,
boolean isRequired)
|
|
XMLBaseForCollectionAndComplex(XMLElement parent,
java.lang.String name,
boolean isRequired)
|
Method Summary | |
---|---|
protected abstract boolean |
add(int no,
XMLElement el)
Adds new element to a certain position |
protected abstract void |
add(XMLElement el)
Adds new element. |
void |
clearCaches()
|
boolean |
contains(XMLElement el)
Returns true if there is such element in collection. |
boolean |
equals(java.lang.Object e)
|
XMLElement |
get(int no)
Gets the element from specified location. |
void |
initCaches()
Initializes caches in read-only mode. |
void |
setNotifyListeners(boolean notify)
|
void |
setNotifyMainListeners(boolean notify)
|
void |
setReadOnly(boolean ro)
Sets this element, and all contained elements to be read only or not. |
void |
setValue(java.lang.String v)
Sets the element value. |
int |
size()
Returns the number of elements. |
org.enhydra.shark.utilities.SequencedHashMap |
toElementMap()
Returns the copy of the map of all elements within collection. |
java.util.ArrayList |
toElements()
Returns the copy of the list all elements within collection. |
Methods inherited from class org.enhydra.shark.xpdl.XMLElement |
---|
addListener, clone, createInfo, getListeners, getMainElement, getOriginalElementHashCode, getParent, isEmpty, isMainElement, isReadOnly, isRequired, makeAs, 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 org.enhydra.shark.utilities.SequencedHashMap elementMap
protected java.util.ArrayList elements
protected transient boolean cachesInitialized
Constructor Detail |
---|
public XMLBaseForCollectionAndComplex(XMLElement parent, boolean isRequired)
public XMLBaseForCollectionAndComplex(XMLElement parent, java.lang.String name, boolean isRequired)
Method Detail |
---|
public void setValue(java.lang.String v)
XMLElement
setValue
in class XMLElement
public void setReadOnly(boolean ro)
setReadOnly
in class XMLElement
public void setNotifyMainListeners(boolean notify)
setNotifyMainListeners
in class XMLElement
public void setNotifyListeners(boolean notify)
setNotifyListeners
in class XMLElement
public void initCaches()
public void clearCaches()
protected abstract void add(XMLElement el)
protected abstract boolean add(int no, XMLElement el)
public boolean contains(XMLElement el)
public XMLElement get(int no)
public int size()
public java.util.ArrayList toElements()
public org.enhydra.shark.utilities.SequencedHashMap toElementMap()
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 |