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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe AttributeSet's default type: 0Fields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetAttribute(String name) getAttributeAtPosition(int position) getAttributeNames(long setId) getLabel()getName()intgetTemplateAttribute(String name) 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, Attribute> templateAttributes) voidsetTemplateId(Long templateId) voidsetTemplateName(String templateName) voidsetType(int type) Methods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
- 
Field Details- 
TYPE_DEFAULTpublic static final int TYPE_DEFAULTThe AttributeSet's default type: 0- See Also:
 
 
- 
- 
Constructor Details- 
AbstractAttributeSetpublic AbstractAttributeSet()
 
- 
- 
Method Details- 
getTemplateAttributes
- 
setTemplateAttributes
- 
getTemplateAttribute
- 
getAttributes
- 
setAttributes
- 
getValueAttributes- Specified by:
- getValueAttributesin interface- Extensible
- Overrides:
- getValueAttributesin class- ExtensibleObject
 
- 
getValues- Specified by:
- getValuesin interface- Extensible
- Overrides:
- getValuesin class- ExtensibleObject
 
- 
getValue- Specified by:
- getValuein interface- Extensible
- Overrides:
- getValuein class- ExtensibleObject
 
- 
getAttribute- Specified by:
- getAttributein interface- Extensible
- Overrides:
- getAttributein class- ExtensibleObject
 
- 
getAttributeNames- Specified by:
- getAttributeNamesin interface- Extensible
- Overrides:
- getAttributeNamesin class- ExtensibleObject
 
- 
getAttributeNames- Specified by:
- getAttributeNamesin interface- Extensible
- Overrides:
- getAttributeNamesin class- ExtensibleObject
 
- 
removeAttribute- Specified by:
- removeAttributein interface- Extensible
- Overrides:
- removeAttributein class- ExtensibleObject
 
- 
getAttributeAtPosition- Specified by:
- getAttributeAtPositionin interface- Extensible
- Overrides:
- getAttributeAtPositionin class- ExtensibleObject
 
- 
setValues- Specified by:
- setValuesin interface- Extensible
- Overrides:
- setValuesin class- ExtensibleObject
 
- 
setAttributeDescription copied from class:ExtensibleObjectPuts a new attribute, if the attribute already exists his position and label are left untouched- Specified by:
- setAttributein interface- Extensible
- Overrides:
- setAttributein class- ExtensibleObject
- Parameters:
- name- name of the attribute
- attr- the attribute instance
 
- 
setValue- Specified by:
- setValuein interface- Extensible
- Overrides:
- setValuein class- ExtensibleObject
 
- 
getName
- 
setName
- 
getDescription
- 
setDescription
- 
getReadonlypublic int getReadonly()
- 
setReadonlypublic void setReadonly(int readonly) 
- 
getTypepublic int getType()
- 
setTypepublic void setType(int type) 
- 
getLabel
- 
setLabel
- 
getTemplateId
- 
setTemplateId
- 
getTemplateName
- 
setTemplateName
- 
getTemplate
- 
setTemplate
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PersistentObject
 
- 
equals- Overrides:
- equalsin class- PersistentObject
 
 
-