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:
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.anosite.gen.aswebdata.data.Attribute
PROP_GUARDS, PROP_ID, PROP_KEY, PROP_NAME, PROP_SUBATTRIBUTES, PROP_VALUE
-
-
Constructor Summary
Constructors Constructor Description AttributeDocument()AttributeDocument(java.lang.String id)AttributeDocument(AttributeDocument toClone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGuardsElement(java.lang.String guard)Adds a new element to the list.voidaddSubattributesElement(java.lang.String type)Adds a new element to the list.intcompareTo(Attribute comparable)intcompareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)booleanequals(java.lang.Object o)java.lang.StringgetDefinedName()java.lang.StringgetDefinedParentName()java.lang.StringgetFootprint()java.util.List<java.lang.String>getGuards()Returns the value of the guards attribute.java.lang.StringgetGuardsElement(int index)Returns the element at the position index in the list.intgetGuardsSize()Returns the number of elements in the "guards" containerjava.lang.StringgetKey()Returns the value of the key attribute.java.lang.StringgetName()Returns the value of the name attribute.java.util.List<java.lang.String>getSubattributes()Returns the value of the subattributes attribute.java.lang.StringgetSubattributesElement(int index)Returns the element at the position index in the list.intgetSubattributesSize()Returns the number of elements in the "subattributes" containerjava.lang.StringgetValue()Returns the value of the value attribute.voidremoveGuardsElement(int index)Removes the element at position index from the list.voidremoveSubattributesElement(int index)Removes the element at position index from the list.voidsetGuards(java.util.List<java.lang.String> value)Sets the value of the guards attribute.voidsetKey(java.lang.String value)Sets the value of the key attribute.voidsetName(java.lang.String value)Sets the value of the name attribute.voidsetSubattributes(java.util.List<java.lang.String> value)Sets the value of the subattributes attribute.voidsetValue(java.lang.String value)Sets the value of the value attribute.voidswapGuardsElement(int index1, int index2)Swaps elements at positions index1 and index2 in the list.voidswapSubattributesElement(int index1, int index2)Swaps elements at positions index1 and index2 in the list.java.lang.StringtoString()-
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
-
-
-
-
Constructor Detail
-
AttributeDocument
public AttributeDocument()
-
AttributeDocument
public AttributeDocument(java.lang.String id)
-
AttributeDocument
public AttributeDocument(AttributeDocument toClone)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:AttributeReturns the value of the name attribute.
-
setName
public void setName(java.lang.String value)
Description copied from interface:AttributeSets the value of the name attribute.
-
getKey
public java.lang.String getKey()
Description copied from interface:AttributeReturns the value of the key attribute.
-
setKey
public void setKey(java.lang.String value)
Description copied from interface:AttributeSets the value of the key attribute.
-
getValue
public java.lang.String getValue()
Description copied from interface:AttributeReturns the value of the value attribute.
-
setValue
public void setValue(java.lang.String value)
Description copied from interface:AttributeSets the value of the value attribute.
-
getSubattributes
public java.util.List<java.lang.String> getSubattributes()
Description copied from interface:AttributeReturns the value of the subattributes attribute.- Specified by:
getSubattributesin interfaceAttribute
-
setSubattributes
public void setSubattributes(java.util.List<java.lang.String> value)
Description copied from interface:AttributeSets the value of the subattributes attribute.- Specified by:
setSubattributesin interfaceAttribute
-
getGuards
public java.util.List<java.lang.String> getGuards()
Description copied from interface:AttributeReturns the value of the guards attribute.
-
setGuards
public void setGuards(java.util.List<java.lang.String> value)
Description copied from interface:AttributeSets the value of the guards attribute.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classnet.anotheria.anodoc.data.Document
-
getSubattributesSize
public int getSubattributesSize()
Description copied from interface:AttributeReturns the number of elements in the "subattributes" container- Specified by:
getSubattributesSizein interfaceAttribute
-
addSubattributesElement
public void addSubattributesElement(java.lang.String type)
Description copied from interface:AttributeAdds a new element to the list.- Specified by:
addSubattributesElementin interfaceAttribute
-
removeSubattributesElement
public void removeSubattributesElement(int index)
Description copied from interface:AttributeRemoves the element at position index from the list.- Specified by:
removeSubattributesElementin interfaceAttribute
-
swapSubattributesElement
public void swapSubattributesElement(int index1, int index2)Description copied from interface:AttributeSwaps elements at positions index1 and index2 in the list.- Specified by:
swapSubattributesElementin interfaceAttribute
-
getSubattributesElement
public java.lang.String getSubattributesElement(int index)
Description copied from interface:AttributeReturns the element at the position index in the list.- Specified by:
getSubattributesElementin interfaceAttribute
-
getGuardsSize
public int getGuardsSize()
Description copied from interface:AttributeReturns the number of elements in the "guards" container- Specified by:
getGuardsSizein interfaceAttribute
-
addGuardsElement
public void addGuardsElement(java.lang.String guard)
Description copied from interface:AttributeAdds a new element to the list.- Specified by:
addGuardsElementin interfaceAttribute
-
removeGuardsElement
public void removeGuardsElement(int index)
Description copied from interface:AttributeRemoves the element at position index from the list.- Specified by:
removeGuardsElementin interfaceAttribute
-
swapGuardsElement
public void swapGuardsElement(int index1, int index2)Description copied from interface:AttributeSwaps elements at positions index1 and index2 in the list.- Specified by:
swapGuardsElementin interfaceAttribute
-
getGuardsElement
public java.lang.String getGuardsElement(int index)
Description copied from interface:AttributeReturns the element at the position index in the list.- Specified by:
getGuardsElementin interfaceAttribute
-
compareTo
public int compareTo(Attribute comparable)
-
compareTo
public int compareTo(net.anotheria.util.sorter.IComparable anotherComparable, int method)- Specified by:
compareToin interfacenet.anotheria.util.sorter.IComparable
-
getDefinedName
public java.lang.String getDefinedName()
- Specified by:
getDefinedNamein interfacenet.anotheria.asg.data.DataObject
-
getDefinedParentName
public java.lang.String getDefinedParentName()
- Specified by:
getDefinedParentNamein interfacenet.anotheria.asg.data.DataObject
-
getFootprint
public java.lang.String getFootprint()
- Specified by:
getFootprintin interfacenet.anotheria.asg.data.DataObject
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-