|
|||||||||
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
org.enhydra.shark.xpdl.XMLCollection
public abstract class XMLCollection
Class that represents collection of elements from XML schema.
Field Summary |
---|
Fields inherited from class org.enhydra.shark.xpdl.XMLBaseForCollectionAndComplex |
---|
cachesInitialized, elementMap, elements |
Fields inherited from class org.enhydra.shark.xpdl.XMLElement |
---|
isReadOnly, listeners, notifyListeners, notifyMainListeners, originalElementHashCode, parent, value |
Constructor Summary | |
---|---|
XMLCollection(XMLCollection parent,
boolean isRequired)
|
|
XMLCollection(XMLCollection parent,
java.lang.String name,
boolean isRequired)
|
|
XMLCollection(XMLComplexChoice parent,
boolean isRequired)
|
|
XMLCollection(XMLComplexChoice parent,
java.lang.String name,
boolean isRequired)
|
|
XMLCollection(XMLComplexElement parent,
boolean isRequired)
|
|
XMLCollection(XMLComplexElement parent,
java.lang.String name,
boolean isRequired)
|
Method Summary | |
---|---|
boolean |
add(int no,
XMLElement el)
NOTE: Method signature changed to public. |
void |
add(XMLElement el)
NOTE: Method signature changed to public. |
boolean |
addAll(java.util.List els)
|
protected void |
checkRepositioning(org.enhydra.shark.utilities.SequencedHashMap oldEls,
org.enhydra.shark.utilities.SequencedHashMap newEls)
|
void |
clear()
Clears the collection. |
void |
clearCaches()
|
java.lang.Object |
clone()
Used to create exact copy of the element. |
boolean |
containsElement(java.lang.String id)
Returns true if element with given Id exists in collection. |
abstract XMLElement |
generateNewElement()
Generates the new element that made collection. |
XMLCollectionElement |
getCollectionElement(java.lang.String id)
Returns the element specified by Id attribute. |
int |
indexOf(XMLElement el)
|
void |
initCaches()
Initializes caches in read-only mode. |
boolean |
isEmpty()
Returns true if there are no elements within collection. |
void |
makeAs(XMLElement el)
|
XMLElement |
remove(int no)
|
int |
remove(XMLElement el)
|
boolean |
removeAll(java.util.List els)
|
protected XMLElement |
removeElement(int no)
|
boolean |
reposition(XMLElement el,
int newPos)
|
Methods inherited from class org.enhydra.shark.xpdl.XMLBaseForCollectionAndComplex |
---|
contains, equals, get, setNotifyListeners, setNotifyMainListeners, setReadOnly, setValue, size, toElementMap, toElements |
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 |
Constructor Detail |
---|
public XMLCollection(XMLComplexElement parent, boolean isRequired)
public XMLCollection(XMLComplexElement parent, java.lang.String name, boolean isRequired)
public XMLCollection(XMLComplexChoice parent, boolean isRequired)
public XMLCollection(XMLComplexChoice parent, java.lang.String name, boolean isRequired)
public XMLCollection(XMLCollection parent, boolean isRequired)
public XMLCollection(XMLCollection parent, java.lang.String name, boolean isRequired)
Method Detail |
---|
public void makeAs(XMLElement el)
makeAs
in class XMLElement
public void initCaches()
XMLBaseForCollectionAndComplex
initCaches
in class XMLBaseForCollectionAndComplex
public void clearCaches()
clearCaches
in class XMLBaseForCollectionAndComplex
public void add(XMLElement el)
add
in class XMLBaseForCollectionAndComplex
public boolean add(int no, XMLElement el)
add
in class XMLBaseForCollectionAndComplex
public boolean addAll(java.util.List els)
public int remove(XMLElement el)
public XMLElement remove(int no)
protected XMLElement removeElement(int no)
public boolean removeAll(java.util.List els)
public boolean reposition(XMLElement el, int newPos)
public boolean isEmpty()
isEmpty
in class XMLElement
public XMLCollectionElement getCollectionElement(java.lang.String id)
public boolean containsElement(java.lang.String id)
public int indexOf(XMLElement el)
public void clear()
public abstract XMLElement generateNewElement()
protected void checkRepositioning(org.enhydra.shark.utilities.SequencedHashMap oldEls, org.enhydra.shark.utilities.SequencedHashMap newEls)
public java.lang.Object clone()
XMLElement
clone
in class XMLElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |