org.enhydra.shark.xpdl.elements
Class ExtendedAttributes

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

public class ExtendedAttributes
extends XMLCollection

Represents coresponding element from XPDL schema.

Author:
Sasa Bojanic
See Also:
Serialized Form

Field Summary
 org.enhydra.shark.utilities.SequencedHashMap eaMap
           
protected  java.lang.String extAttribsString
           
 
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
ExtendedAttributes(XMLComplexElement parent)
           
 
Method Summary
 void clear()
          Clears the collection.
 void clearCaches()
           
 void clearExtAttribString()
           
 java.lang.Object clone()
          Used to create exact copy of the element.
 boolean containsElement(java.lang.String name)
          Returns true if there is at least one ExtendedAttribute with such name.
 boolean containsValue(java.lang.String val)
          Returns true if there is at least one ExtendedAttribute with such value.
 XMLElement generateNewElement()
          Generates the new element that made collection.
 java.util.ArrayList getElementsForName(java.lang.String name)
          Returns all elements with specified name.
 java.lang.String getExtendedAttributesString()
           
 ExtendedAttribute getFirstExtendedAttributeForName(java.lang.String name)
           
 void initCaches()
          Initializes caches in read-only mode.
 void initExtAttribString()
           
 void makeAs(XMLElement el)
           
 
Methods inherited from class org.enhydra.shark.xpdl.XMLCollection
add, add, addAll, checkRepositioning, getCollectionElement, indexOf, isEmpty, remove, remove, removeAll, removeElement, reposition
 
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
 

Field Detail

eaMap

public transient org.enhydra.shark.utilities.SequencedHashMap eaMap

extAttribsString

protected java.lang.String extAttribsString
Constructor Detail

ExtendedAttributes

public ExtendedAttributes(XMLComplexElement parent)
Method Detail

makeAs

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

generateNewElement

public XMLElement generateNewElement()
Description copied from class: XMLCollection
Generates the new element that made collection. Derived classes has to implement this method to create it's collection element.

Specified by:
generateNewElement in class XMLCollection

getFirstExtendedAttributeForName

public ExtendedAttribute getFirstExtendedAttributeForName(java.lang.String name)

initCaches

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

Overrides:
initCaches in class XMLCollection

initExtAttribString

public void initExtAttribString()

clearExtAttribString

public void clearExtAttribString()

getExtendedAttributesString

public java.lang.String getExtendedAttributesString()

clearCaches

public void clearCaches()
Overrides:
clearCaches in class XMLCollection

clear

public void clear()
Description copied from class: XMLCollection
Clears the collection.

Overrides:
clear in class XMLCollection

containsElement

public boolean containsElement(java.lang.String name)
Returns true if there is at least one ExtendedAttribute with such name.

Overrides:
containsElement in class XMLCollection

containsValue

public boolean containsValue(java.lang.String val)
Returns true if there is at least one ExtendedAttribute with such value.


getElementsForName

public java.util.ArrayList getElementsForName(java.lang.String name)
Returns all elements with specified name.


clone

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

Overrides:
clone in class XMLCollection