Class AttributeDocument

java.lang.Object
net.anotheria.anodoc.data.DataHolder
net.anotheria.anodoc.data.Document
net.anotheria.asg.data.AbstractASGDocument
net.anotheria.anosite.gen.aswebdata.data.AttributeDocument
All Implemented Interfaces:
Serializable, Cloneable, net.anotheria.anodoc.data.IBasicStoreableObject, net.anotheria.anodoc.data.ICompositeDataObject, Attribute, net.anotheria.asg.data.DataObject, net.anotheria.asg.data.LockableObject, net.anotheria.util.sorter.IComparable

public class AttributeDocument extends net.anotheria.asg.data.AbstractASGDocument implements Attribute, net.anotheria.util.sorter.IComparable
See Also:
  • Field Summary

    Fields inherited from class net.anotheria.asg.data.AbstractASGDocument

    INT_PROPERTY_MULTILINGUAL_DISABLED

    Fields inherited from class net.anotheria.anodoc.data.Document

    PROP_AUTHOR, PROP_LAST_UPDATE, PROP_TYPE_IDENTIFIER

    Fields inherited from interface net.anotheria.anosite.gen.aswebdata.data.Attribute

    PROP_GUARDS, PROP_ID, PROP_KEY, PROP_NAME, PROP_SUBATTRIBUTES, PROP_VALUE

    Fields inherited from interface net.anotheria.asg.data.LockableObject

    INT_LOCK_PROPERTY_NAME, INT_LOCKER_ID_PROPERTY_NAME, INT_LOCKING_TIME_PROPERTY_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a new element to the list.
    void
    Adds a new element to the list.
    int
    compareTo(Attribute comparable)
     
    int
    compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)
     
    boolean
     
     
     
     
    Returns the value of the guards attribute.
    getGuardsElement(int index)
    Returns the element at the position index in the list.
    int
    Returns the number of elements in the "guards" container
    Returns the value of the key attribute.
    Returns the value of the name attribute.
    Returns the value of the subattributes attribute.
    Returns the element at the position index in the list.
    int
    Returns the number of elements in the "subattributes" container
    Returns the value of the value attribute.
    void
    Removes the element at position index from the list.
    void
    Removes the element at position index from the list.
    void
    Sets the value of the guards attribute.
    void
    setKey(String value)
    Sets the value of the key attribute.
    void
    setName(String value)
    Sets the value of the name attribute.
    void
    Sets the value of the subattributes attribute.
    void
    Sets the value of the value attribute.
    void
    swapGuardsElement(int index1, int index2)
    Swaps elements at positions index1 and index2 in the list.
    void
    swapSubattributesElement(int index1, int index2)
    Swaps elements at positions index1 and index2 in the list.
     

    Methods inherited from class net.anotheria.asg.data.AbstractASGDocument

    getInternalProperty, getLockerId, getLockingTime, getObjectInfo, isLocked, setInternalProperty, setLocked, setLockerId, setLockingTime

    Methods inherited from class net.anotheria.anodoc.data.Document

    addDataHolder, clone, copyFromBooleanList, copyFromDoubleList, copyFromFloatList, copyFromIntegerList, copyFromLongList, copyFromStringList, copyToBooleanList, copyToDoubleList, copyToFloatList, copyToIntegerList, copyToLongList, copyToStringList, createDocument, createDocumentList, createListProperty, getAuthor, getBoolean, getBooleanProperty, getDataHolder, getDocument, getDocumentAnyCase, getDocumentList, getDocumentListAnyCase, getDouble, getDoubleProperty, getEmptyBoolean, getEmptyDouble, getEmptyFloat, getEmptyInt, getEmptyList, getEmptyLong, getEmptyString, getFloat, getFloatProperty, getInt, getIntProperty, getKeys, getLastUpdateTimestamp, getList, getListProperty, getListPropertyAnyCase, getLong, getLongProperty, getObject, getProperties, getProperty, getPropertyValue, getSizeInBytes, getStorageId, getString, getStringProperty, getTypeIdentifier, putBooleanProperty, putDocument, putDoubleProperty, putFloatProperty, putIntProperty, putList, putListProperty, putLongProperty, putProperty, putStringProperty, removeDataHolder, removeDataHolder, removeProperty, removeProperty, renameTo, setBoolean, setCallContextAuthor, setDouble, setFloat, setInt, setLastUpdateNow, setList, setLong, setString, setTypeIdentifier, toXMLNode

    Methods inherited from class net.anotheria.anodoc.data.DataHolder

    getId, hashCode, setId

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.anotheria.asg.data.DataObject

    clone, getId, getLastUpdateTimestamp, getObjectInfo, getPropertyValue, toXMLNode
  • Constructor Details

    • AttributeDocument

      public AttributeDocument()
    • AttributeDocument

      public AttributeDocument(String id)
    • AttributeDocument

      public AttributeDocument(AttributeDocument toClone)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Attribute
      Returns the value of the name attribute.
      Specified by:
      getName in interface Attribute
    • setName

      public void setName(String value)
      Description copied from interface: Attribute
      Sets the value of the name attribute.
      Specified by:
      setName in interface Attribute
    • getKey

      public String getKey()
      Description copied from interface: Attribute
      Returns the value of the key attribute.
      Specified by:
      getKey in interface Attribute
    • setKey

      public void setKey(String value)
      Description copied from interface: Attribute
      Sets the value of the key attribute.
      Specified by:
      setKey in interface Attribute
    • getValue

      public String getValue()
      Description copied from interface: Attribute
      Returns the value of the value attribute.
      Specified by:
      getValue in interface Attribute
    • setValue

      public void setValue(String value)
      Description copied from interface: Attribute
      Sets the value of the value attribute.
      Specified by:
      setValue in interface Attribute
    • getSubattributes

      public List<String> getSubattributes()
      Description copied from interface: Attribute
      Returns the value of the subattributes attribute.
      Specified by:
      getSubattributes in interface Attribute
    • setSubattributes

      public void setSubattributes(List<String> value)
      Description copied from interface: Attribute
      Sets the value of the subattributes attribute.
      Specified by:
      setSubattributes in interface Attribute
    • getGuards

      public List<String> getGuards()
      Description copied from interface: Attribute
      Returns the value of the guards attribute.
      Specified by:
      getGuards in interface Attribute
    • setGuards

      public void setGuards(List<String> value)
      Description copied from interface: Attribute
      Sets the value of the guards attribute.
      Specified by:
      setGuards in interface Attribute
    • toString

      public String toString()
      Overrides:
      toString in class net.anotheria.anodoc.data.Document
    • getSubattributesSize

      public int getSubattributesSize()
      Description copied from interface: Attribute
      Returns the number of elements in the "subattributes" container
      Specified by:
      getSubattributesSize in interface Attribute
    • addSubattributesElement

      public void addSubattributesElement(String type)
      Description copied from interface: Attribute
      Adds a new element to the list.
      Specified by:
      addSubattributesElement in interface Attribute
    • removeSubattributesElement

      public void removeSubattributesElement(int index)
      Description copied from interface: Attribute
      Removes the element at position index from the list.
      Specified by:
      removeSubattributesElement in interface Attribute
    • swapSubattributesElement

      public void swapSubattributesElement(int index1, int index2)
      Description copied from interface: Attribute
      Swaps elements at positions index1 and index2 in the list.
      Specified by:
      swapSubattributesElement in interface Attribute
    • getSubattributesElement

      public String getSubattributesElement(int index)
      Description copied from interface: Attribute
      Returns the element at the position index in the list.
      Specified by:
      getSubattributesElement in interface Attribute
    • getGuardsSize

      public int getGuardsSize()
      Description copied from interface: Attribute
      Returns the number of elements in the "guards" container
      Specified by:
      getGuardsSize in interface Attribute
    • addGuardsElement

      public void addGuardsElement(String guard)
      Description copied from interface: Attribute
      Adds a new element to the list.
      Specified by:
      addGuardsElement in interface Attribute
    • removeGuardsElement

      public void removeGuardsElement(int index)
      Description copied from interface: Attribute
      Removes the element at position index from the list.
      Specified by:
      removeGuardsElement in interface Attribute
    • swapGuardsElement

      public void swapGuardsElement(int index1, int index2)
      Description copied from interface: Attribute
      Swaps elements at positions index1 and index2 in the list.
      Specified by:
      swapGuardsElement in interface Attribute
    • getGuardsElement

      public String getGuardsElement(int index)
      Description copied from interface: Attribute
      Returns the element at the position index in the list.
      Specified by:
      getGuardsElement in interface Attribute
    • compareTo

      public int compareTo(Attribute comparable)
    • compareTo

      public int compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)
      Specified by:
      compareTo in interface net.anotheria.util.sorter.IComparable
    • getDefinedName

      public String getDefinedName()
      Specified by:
      getDefinedName in interface net.anotheria.asg.data.DataObject
    • getDefinedParentName

      public String getDefinedParentName()
      Specified by:
      getDefinedParentName in interface net.anotheria.asg.data.DataObject
    • getFootprint

      public String getFootprint()
      Specified by:
      getFootprint in interface net.anotheria.asg.data.DataObject
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object