Package com.logicaldoc.core.metadata
Class AbstractAttributeSet
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.metadata.ExtensibleObject
com.logicaldoc.core.metadata.AbstractAttributeSet
- All Implemented Interfaces:
Extensible
,Serializable
- Direct Known Subclasses:
AttributeSet
,Template
A base class for attribute sets and templates
- Since:
- 8.8.3
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The AttributeSet's default type: 0Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getAttribute
(String name) getAttributeAtPosition
(int position) getAttributeNames
(long setId) getLabel()
getName()
int
getTemplateAttribute
(String name) abstract Map
<String, TemplateAttribute> int
getType()
getValueAttributes
(String name) int
hashCode()
void
removeAttribute
(String name) void
setAttribute
(String name, Attribute attr) Puts a new attribute, if the attribute already exists his position and label are left untouchedvoid
setAttributes
(Map<String, Attribute> attributes) void
setDescription
(String description) void
void
void
setReadonly
(int readonly) void
setTemplate
(Template template) abstract void
setTemplateAttributes
(Map<String, TemplateAttribute> templateAttributes) void
setTemplateId
(Long templateId) void
setTemplateName
(String templateName) void
setType
(int type) Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Field Details
-
TYPE_DEFAULT
public static final int TYPE_DEFAULTThe AttributeSet's default type: 0- See Also:
-
-
Constructor Details
-
AbstractAttributeSet
public AbstractAttributeSet()
-
-
Method Details
-
getTemplateAttributes
-
setTemplateAttributes
-
getTemplateAttribute
-
getAttributes
-
setAttributes
-
getValueAttributes
- Specified by:
getValueAttributes
in interfaceExtensible
- Overrides:
getValueAttributes
in classExtensibleObject
-
getValues
- Specified by:
getValues
in interfaceExtensible
- Overrides:
getValues
in classExtensibleObject
-
getValue
- Specified by:
getValue
in interfaceExtensible
- Overrides:
getValue
in classExtensibleObject
-
getAttribute
- Specified by:
getAttribute
in interfaceExtensible
- Overrides:
getAttribute
in classExtensibleObject
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceExtensible
- Overrides:
getAttributeNames
in classExtensibleObject
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceExtensible
- Overrides:
getAttributeNames
in classExtensibleObject
-
removeAttribute
- Specified by:
removeAttribute
in interfaceExtensible
- Overrides:
removeAttribute
in classExtensibleObject
-
getAttributeAtPosition
- Specified by:
getAttributeAtPosition
in interfaceExtensible
- Overrides:
getAttributeAtPosition
in classExtensibleObject
-
setValues
- Specified by:
setValues
in interfaceExtensible
- Overrides:
setValues
in classExtensibleObject
-
setAttribute
Description copied from class:ExtensibleObject
Puts a new attribute, if the attribute already exists his position and label are left untouched- Specified by:
setAttribute
in interfaceExtensible
- Overrides:
setAttribute
in classExtensibleObject
- Parameters:
name
- name of the attributeattr
- the attribute instance
-
setValue
- Specified by:
setValue
in interfaceExtensible
- Overrides:
setValue
in classExtensibleObject
-
getName
-
setName
-
getDescription
-
setDescription
-
getReadonly
public int getReadonly() -
setReadonly
public void setReadonly(int readonly) -
getType
public int getType() -
setType
public void setType(int type) -
getLabel
-
setLabel
-
getTemplateId
-
setTemplateId
-
getTemplateName
-
setTemplateName
-
getTemplate
-
setTemplate
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPersistentObject
-
equals
- Overrides:
equals
in classPersistentObject
-