Package org.cyclos.entities.system
Class CustomFieldPossibleValue<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>>
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.system.CustomFieldPossibleValue<CF,C,PV>
-
- All Implemented Interfaces:
Cloneable,Comparable<CustomFieldPossibleValue<CF,C,PV>>,HasOrder,ProcessableForDataTranslation,IEntity,IInternalNamedEntity,IUnqualifiedInternalNamedEntity,ICustomFieldPossibleValue<C>
- Direct Known Subclasses:
AdCustomFieldPossibleValue,ContactCustomFieldPossibleValue,ContactInfoFieldPossibleValue,CustomOperationFieldPossibleValue,CustomWizardFieldPossibleValue,DocumentCustomFieldPossibleValue,RecordCustomFieldPossibleValue,TransactionCustomFieldPossibleValue,UserCustomFieldPossibleValue
@MappedSuperclass public abstract class CustomFieldPossibleValue<CF extends CustomField<CF,C,PV>,C extends CustomFieldPossibleValueCategory<CF,C,PV>,PV extends CustomFieldPossibleValue<CF,C,PV>> extends BaseEntity implements ICustomFieldPossibleValue<C>, Comparable<CustomFieldPossibleValue<CF,C,PV>>, HasOrder, IUnqualifiedInternalNamedEntity
Holds a possible value for an enumerated custom field. Base class, which needs to be extended for each custom field nature.
-
-
Constructor Summary
Constructors Constructor Description CustomFieldPossibleValue()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(CustomFieldPossibleValue<CF,C,PV> o)abstract CgetCategory()abstract CFgetField()StringgetInternalName()NetworkgetNetwork()Returns the network this entity belongs toIntegergetOrder()StringgetValue()booleanisDefaultValue()abstract voidsetCategory(C category)voidsetDefaultValue(boolean defaultValue)abstract voidsetField(CF field)voidsetInternalName(String internalName)voidsetOrder(Integer order)voidsetValue(String value)StringtoString()-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
-
-
-
Method Detail
-
compareTo
public int compareTo(CustomFieldPossibleValue<CF,C,PV> o)
- Specified by:
compareToin interfaceComparable<CF extends CustomField<CF,C,PV>>
-
getCategory
public abstract C getCategory()
- Specified by:
getCategoryin interfaceICustomFieldPossibleValue<CF extends CustomField<CF,C,PV>>
-
getField
public abstract CF getField()
-
getInternalName
public String getInternalName()
- Specified by:
getInternalNamein interfaceIInternalNamedEntity- Returns:
- the internal name.
-
getNetwork
public Network getNetwork()
Description copied from class:NetworkedEntityReturns the network this entity belongs to- Specified by:
getNetworkin classNetworkedEntity
-
getValue
public String getValue()
- Specified by:
getValuein interfaceICustomFieldPossibleValue<CF extends CustomField<CF,C,PV>>
-
isDefaultValue
public boolean isDefaultValue()
-
setCategory
public abstract void setCategory(C category)
-
setDefaultValue
public void setDefaultValue(boolean defaultValue)
-
setField
public abstract void setField(CF field)
-
setInternalName
public void setInternalName(String internalName)
- Specified by:
setInternalNamein interfaceIInternalNamedEntity- Parameters:
internalName- the internal name to be set.
-
setValue
public void setValue(String value)
-
toString
public String toString()
- Overrides:
toStringin classSimpleEntity
-
-