org.enhydra.shark.xpdl.elements
Class DataTypes

java.lang.Object
  extended by org.enhydra.shark.xpdl.XMLElement
      extended by org.enhydra.shark.xpdl.XMLComplexChoice
          extended by org.enhydra.shark.xpdl.elements.DataTypes
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class DataTypes
extends XMLComplexChoice

Represents coresponding element from XPDL schema.

Author:
Sasa Bojanic
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.enhydra.shark.xpdl.XMLComplexChoice
cachesInitialized, choices, choosen
 
Fields inherited from class org.enhydra.shark.xpdl.XMLElement
isReadOnly, listeners, notifyListeners, notifyMainListeners, originalElementHashCode, parent, value
 
Constructor Summary
DataTypes(XMLComplexElement parent)
           
 
Method Summary
protected  void clear()
           
 void clearCaches()
           
protected  void clearOtherChoices()
           
 java.lang.Object clone()
          Used to create exact copy of the element.
 boolean equals(java.lang.Object e)
           
protected  void fillChoices()
           
 ArrayType getArrayType()
           
 BasicType getBasicType()
           
 java.util.ArrayList getChoices()
          The possible choices - instances of XMLElement class.
 XMLElement getChoosen()
           
 DeclaredType getDeclaredType()
           
 EnumerationType getEnumerationType()
           
 ExternalReference getExternalReference()
           
 ListType getListType()
           
 RecordType getRecordType()
           
 SchemaType getSchemaType()
           
 UnionType getUnionType()
           
 void initCaches()
          Initializes caches in read-only mode.
 void makeAs(XMLElement el)
           
 void setArrayType()
           
 void setBasicType()
           
 void setChoosen(XMLElement ch)
           
 void setDeclaredType()
           
 void setEnumerationType()
           
 void setExternalReference()
           
 void setListType()
           
 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 setRecordType()
           
 void setSchemaType()
           
 void setUnionType()
           
 
Methods inherited from class org.enhydra.shark.xpdl.XMLComplexChoice
isEmpty, setValue
 
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

DataTypes

public DataTypes(XMLComplexElement parent)
Method Detail

fillChoices

protected void fillChoices()
Specified by:
fillChoices in class XMLComplexChoice

clear

protected void clear()

clearOtherChoices

protected void clearOtherChoices()

setReadOnly

public void setReadOnly(boolean ro)
Description copied from class: XMLComplexChoice
Overrides super-method to set this element and all of its choice elements read only value to the one specified.

Overrides:
setReadOnly in class XMLComplexChoice

makeAs

public void makeAs(XMLElement el)
Overrides:
makeAs in class XMLComplexChoice

setNotifyListeners

public void setNotifyListeners(boolean notify)
Overrides:
setNotifyListeners in class XMLComplexChoice

setNotifyMainListeners

public void setNotifyMainListeners(boolean notify)
Overrides:
setNotifyMainListeners in class XMLComplexChoice

initCaches

public void initCaches()
Description copied from class: XMLComplexChoice
Initializes caches in read-only mode. If mode is not read-only, throws RuntimeException.

Overrides:
initCaches in class XMLComplexChoice

clearCaches

public void clearCaches()
Overrides:
clearCaches in class XMLComplexChoice

getChoices

public java.util.ArrayList getChoices()
Description copied from class: XMLComplexChoice
The possible choices - instances of XMLElement class.

Overrides:
getChoices in class XMLComplexChoice
Returns:
the possible choices for this element.

getChoosen

public XMLElement getChoosen()
Overrides:
getChoosen in class XMLComplexChoice

setChoosen

public void setChoosen(XMLElement ch)
Overrides:
setChoosen in class XMLComplexChoice

getBasicType

public BasicType getBasicType()

setBasicType

public void setBasicType()

getDeclaredType

public DeclaredType getDeclaredType()

setDeclaredType

public void setDeclaredType()

getSchemaType

public SchemaType getSchemaType()

setSchemaType

public void setSchemaType()

getExternalReference

public ExternalReference getExternalReference()

setExternalReference

public void setExternalReference()

getRecordType

public RecordType getRecordType()

setRecordType

public void setRecordType()

getUnionType

public UnionType getUnionType()

setUnionType

public void setUnionType()

getEnumerationType

public EnumerationType getEnumerationType()

setEnumerationType

public void setEnumerationType()

getArrayType

public ArrayType getArrayType()

setArrayType

public void setArrayType()

getListType

public ListType getListType()

setListType

public void setListType()

clone

public java.lang.Object clone()
Description copied from class: XMLElement
Used to create exact copy of the element.

Overrides:
clone in class XMLComplexChoice

equals

public boolean equals(java.lang.Object e)
Overrides:
equals in class XMLComplexChoice