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 Summary
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
ConstructorsConstructorDescriptionAttributeOption(long setId, String attribute, String value) AttributeOption(long setId, String attribute, String value, String category) -
Method Summary
Modifier 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.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId, toString
-
Constructor Details
-
AttributeOption
public AttributeOption() -
AttributeOption
-
AttributeOption
-
-
Method Details
-
getSetId
public long getSetId() -
setSetId
public void setSetId(long setId) -
getAttribute
-
setAttribute
-
getValue
-
setValue
-
getLabel
-
setLabel
-
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
getCategory
-
setCategory
-
compareTo
- Specified by:
compareToin interfaceComparable<AttributeOption>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-