|
|||||||||
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.XMLComplexElement
public abstract class XMLComplexElement
Class that represents complex element 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 | |
---|---|
XMLComplexElement(XMLElement parent,
boolean isRequired)
|
|
XMLComplexElement(XMLElement parent,
java.lang.String name,
boolean isRequired)
|
Method Summary | |
---|---|
protected boolean |
add(int no,
XMLElement el)
Adds new element to a certain position |
protected void |
add(XMLElement el)
Adds new element. |
java.lang.Object |
clone()
Used to create exact copy of the element. |
boolean |
containsName(java.lang.String name)
Returns true if there is an element with such element in structure. |
protected abstract void |
fillStructure()
The classes that are derived from this class has to give its definition for this method. |
XMLElement |
get(java.lang.String name)
Gets the element with specified name from stucture. |
java.util.ArrayList |
getXMLAttributes()
Returns the collection of XML attributes this element is made of. |
java.util.ArrayList |
getXMLElements()
Returns the collection of XML elements this element is made of. |
boolean |
isEmpty()
It is empty if its value is not set, and if all elements in the structure are empty. |
void |
makeAs(XMLElement el)
|
boolean |
set(int no,
java.lang.String value)
Sets the element that is placed at specified location within structure to the specified value. |
void |
set(java.lang.String name,
java.lang.String value)
Sets the element from structure with specified name to the specified value. |
Methods inherited from class org.enhydra.shark.xpdl.XMLBaseForCollectionAndComplex |
---|
clearCaches, contains, equals, get, initCaches, 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 XMLComplexElement(XMLElement parent, boolean isRequired)
public XMLComplexElement(XMLElement parent, java.lang.String name, boolean isRequired)
Method Detail |
---|
public void makeAs(XMLElement el)
makeAs
in class XMLElement
protected void add(XMLElement el)
XMLBaseForCollectionAndComplex
add
in class XMLBaseForCollectionAndComplex
protected boolean add(int no, XMLElement el)
XMLBaseForCollectionAndComplex
add
in class XMLBaseForCollectionAndComplex
public boolean isEmpty()
isEmpty
in class XMLElement
public java.util.ArrayList getXMLElements()
public java.util.ArrayList getXMLAttributes()
public void set(java.lang.String name, java.lang.String value)
public boolean set(int no, java.lang.String value)
public XMLElement get(java.lang.String name)
public boolean containsName(java.lang.String name)
protected abstract void fillStructure()
NOTE: The order of inserted elements is relevant for XML to be valid (members of classes derived from this class must be inserted into first mentioned list in the same order that they are within a corresponding tag for those classes within WfMC XML).
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 |