Package com.logicaldoc.core.metadata
Class ExtensibleObject
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.metadata.ExtensibleObject
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractAttributeSet
,AbstractDocument
,Folder
,Generic
An extensible object is able to store an undeterminate 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
-
Constructor Summary
-
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 untouchedvoid
setAttributes
(Map<String, Attribute> attributes) void
setTemplate
(Template template) void
setTemplateId
(Long templateId) void
setTemplateName
(String templateName) Methods inherited from class com.logicaldoc.core.PersistentObject
equals, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Constructor Details
-
ExtensibleObject
public ExtensibleObject()
-
-
Method Details
-
getTemplateId
-
setTemplateId
-
getTemplateName
-
setTemplateName
-
getTemplate
-
setTemplate
-
getAttributes
-
setAttributes
-
getValueAttributes
-
getValues
-
getValue
-
getAttribute
-
getAttributeNames
-
getAttributeNames
-
removeAttribute
-
getAttributeAtPosition
-
setValues
-
setValues
-
setAttribute
Puts a new attribute, if the attribute already exists his position and label are left untouched- Parameters:
name
- name of the attributeattribute
- the attribute instance
-
setValue
-