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) void
removeAttribute
(String name) void
setAttribute
(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, toString
Methods 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:
getValueAttributes
in interfaceExtensible
-
getValues
- Specified by:
getValues
in interfaceExtensible
-
getValue
- Specified by:
getValue
in interfaceExtensible
-
getAttribute
- Specified by:
getAttribute
in interfaceExtensible
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceExtensible
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceExtensible
-
removeAttribute
- Specified by:
removeAttribute
in interfaceExtensible
-
getAttributeAtPosition
- Specified by:
getAttributeAtPosition
in interfaceExtensible
-
setValues
- Specified by:
setValues
in interfaceExtensible
-
setAttribute
Puts a new attribute, if the attribute already exists his position and label are left untouched- Specified by:
setAttribute
in interfaceExtensible
- Parameters:
name
- name of the attributeattribute
- the attribute instance
-
setValue
- Specified by:
setValue
in interfaceExtensible
-