Package com.logicaldoc.core.metadata
Class AttributeOption
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.metadata.AttributeOption
- All Implemented Interfaces:
- Serializable,- Comparable<AttributeOption>
@Entity
public class AttributeOption
extends PersistentObject
implements Comparable<AttributeOption>
Represents an option for a multi-choice attribute
- Since:
- 7.1
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- 
Field SummaryFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructorsConstructorDescriptionAttributeOption(long setId, String attribute, String value) AttributeOption(long setId, String attribute, String value, String category) 
- 
Method SummaryModifier and TypeMethodDescriptionintcompareTo(AttributeOption other) booleangetLabel()intlonggetSetId()getValue()inthashCode()voidsetAttribute(String attribute) voidsetCategory(String category) voidvoidsetPosition(int position) voidsetSetId(long setId) voidMethods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
- 
Constructor Details- 
AttributeOptionpublic AttributeOption()
- 
AttributeOption
- 
AttributeOption
 
- 
- 
Method Details- 
getSetIdpublic long getSetId()
- 
setSetIdpublic void setSetId(long setId) 
- 
getAttribute
- 
setAttribute
- 
getValue
- 
setValue
- 
getLabel
- 
setLabel
- 
getPositionpublic int getPosition()
- 
setPositionpublic void setPosition(int position) 
- 
getCategory
- 
setCategory
- 
compareTo- Specified by:
- compareToin interface- Comparable<AttributeOption>
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PersistentObject
 
- 
equals- Overrides:
- equalsin class- PersistentObject
 
 
-