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 intThe 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 TypeMethodDescriptionbooleangetAttribute(String name) getAttributeAtPosition(int position) getAttributeNames(long setId) getLabel()getName()intgetTemplateAttribute(String name) abstract Map<String, TemplateAttribute> intgetType()getValueAttributes(String name) inthashCode()voidremoveAttribute(String name) voidsetAttribute(String name, Attribute attr) Puts a new attribute, if the attribute already exists his position and label are left untouchedvoidsetAttributes(Map<String, Attribute> attributes) voidsetDescription(String description) voidvoidvoidsetReadonly(int readonly) voidsetTemplate(Template template) abstract voidsetTemplateAttributes(Map<String, TemplateAttribute> templateAttributes) voidsetTemplateId(Long templateId) voidsetTemplateName(String templateName) voidsetType(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:
getValueAttributesin interfaceExtensible- Overrides:
getValueAttributesin classExtensibleObject
-
getValues
- Specified by:
getValuesin interfaceExtensible- Overrides:
getValuesin classExtensibleObject
-
getValue
- Specified by:
getValuein interfaceExtensible- Overrides:
getValuein classExtensibleObject
-
getAttribute
- Specified by:
getAttributein interfaceExtensible- Overrides:
getAttributein classExtensibleObject
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceExtensible- Overrides:
getAttributeNamesin classExtensibleObject
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceExtensible- Overrides:
getAttributeNamesin classExtensibleObject
-
removeAttribute
- Specified by:
removeAttributein interfaceExtensible- Overrides:
removeAttributein classExtensibleObject
-
getAttributeAtPosition
- Specified by:
getAttributeAtPositionin interfaceExtensible- Overrides:
getAttributeAtPositionin classExtensibleObject
-
setValues
- Specified by:
setValuesin interfaceExtensible- Overrides:
setValuesin classExtensibleObject
-
setAttribute
Description copied from class:ExtensibleObjectPuts a new attribute, if the attribute already exists his position and label are left untouched- Specified by:
setAttributein interfaceExtensible- Overrides:
setAttributein classExtensibleObject- Parameters:
name- name of the attributeattr- the attribute instance
-
setValue
- Specified by:
setValuein interfaceExtensible- Overrides:
setValuein 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:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-