Package com.logicaldoc.core.metadata
Class ExtensibleObject
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.metadata.ExtensibleObject
- All Implemented Interfaces:
Extensible,Serializable
- Direct Known Subclasses:
AbstractAttributeSet,AbstractDocument,Folder,Generic
@MappedSuperclass
public abstract class ExtensibleObject
extends PersistentObject
implements Extensible
An extensible object is able to store an indeterminate number of attributes.
Each attribute has a name and a string value.
- Since:
- 4.0
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Field Summary
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) getAttributeAtPosition(int position) getAttributeNames(long setId) getValueAttributes(String name) voidremoveAttribute(String name) voidsetAttribute(String name, Attribute attribute) Puts a new attribute, if the attribute already exists his position and label are left untouchedMethods inherited from class com.logicaldoc.core.PersistentObject
equals, getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toStringMethods inherited from interface com.logicaldoc.core.metadata.Extensible
getAttributes, getTemplate, getTemplateId, getTemplateName, setAttributes, setTemplate, setTemplateId, setTemplateName
-
Constructor Details
-
ExtensibleObject
public ExtensibleObject()
-
-
Method Details
-
getValueAttributes
- Specified by:
getValueAttributesin interfaceExtensible
-
getValues
- Specified by:
getValuesin interfaceExtensible
-
getValue
- Specified by:
getValuein interfaceExtensible
-
getAttribute
- Specified by:
getAttributein interfaceExtensible
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceExtensible
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceExtensible
-
removeAttribute
- Specified by:
removeAttributein interfaceExtensible
-
getAttributeAtPosition
- Specified by:
getAttributeAtPositionin interfaceExtensible
-
setValues
- Specified by:
setValuesin interfaceExtensible
-
setAttribute
Puts a new attribute, if the attribute already exists his position and label are left untouched- Specified by:
setAttributein interfaceExtensible- Parameters:
name- name of the attributeattribute- the attribute instance
-
setValue
- Specified by:
setValuein interfaceExtensible
-