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>
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
-
Constructor Summary
ConstructorDescriptionAttributeOption
(long setId, String attribute, String value) AttributeOption
(long setId, String attribute, String value, String category) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(AttributeOption other) boolean
getLabel()
int
long
getSetId()
getValue()
void
setAttribute
(String attribute) void
setCategory
(String category) void
void
setPosition
(int position) void
setSetId
(long setId) void
Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, hashCode, 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:
compareTo
in interfaceComparable<AttributeOption>
-
equals
- Overrides:
equals
in classPersistentObject
-