Class AttributeDocument

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.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:
    Serialized Form
    • 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.asg.data.LockableObject

        INT_LOCK_PROPERTY_NAME, INT_LOCKER_ID_PROPERTY_NAME, INT_LOCKING_TIME_PROPERTY_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addGuardsElement​(java.lang.String guard)
      Adds a new element to the list.
      void addSubattributesElement​(java.lang.String type)
      Adds a new element to the list.
      int compareTo​(Attribute comparable)  
      int compareTo​(net.anotheria.util.sorter.IComparable anotherComparable, int method)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getDefinedName()  
      java.lang.String getDefinedParentName()  
      java.lang.String getFootprint()  
      java.util.List<java.lang.String> getGuards()
      Returns the value of the guards attribute.
      java.lang.String getGuardsElement​(int index)
      Returns the element at the position index in the list.
      int getGuardsSize()
      Returns the number of elements in the "guards" container
      java.lang.String getKey()
      Returns the value of the key attribute.
      java.lang.String getName()
      Returns the value of the name attribute.
      java.util.List<java.lang.String> getSubattributes()
      Returns the value of the subattributes attribute.
      java.lang.String getSubattributesElement​(int index)
      Returns the element at the position index in the list.
      int getSubattributesSize()
      Returns the number of elements in the "subattributes" container
      java.lang.String getValue()
      Returns the value of the value attribute.
      void removeGuardsElement​(int index)
      Removes the element at position index from the list.
      void removeSubattributesElement​(int index)
      Removes the element at position index from the list.
      void setGuards​(java.util.List<java.lang.String> value)
      Sets the value of the guards attribute.
      void setKey​(java.lang.String value)
      Sets the value of the key attribute.
      void setName​(java.lang.String value)
      Sets the value of the name attribute.
      void setSubattributes​(java.util.List<java.lang.String> value)
      Sets the value of the subattributes attribute.
      void setValue​(java.lang.String value)
      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.
      java.lang.String toString()  
      • 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 Detail

      • AttributeDocument

        public AttributeDocument()
      • AttributeDocument

        public AttributeDocument​(java.lang.String id)
    • Method Detail

      • getName

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

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

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

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

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

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

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

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

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

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

        public java.lang.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​(java.lang.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 java.lang.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​(java.lang.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 java.lang.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 java.lang.String getDefinedName()
        Specified by:
        getDefinedName in interface net.anotheria.asg.data.DataObject
      • getDefinedParentName

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

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object