Package org.cyclos.model.system.fields
Class CustomFieldPossibleValueDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.system.fields.CustomFieldPossibleValueDTO
-
- All Implemented Interfaces:
Serializable,IEntity,IInternalNamedEntity,ICustomFieldPossibleValue<CustomFieldPossibleValueCategoryVO>
public class CustomFieldPossibleValueDTO extends EntityDTO implements IInternalNamedEntity, ICustomFieldPossibleValue<CustomFieldPossibleValueCategoryVO>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<CustomFieldPossibleValueCategoryVO,CustomFieldPossibleValueDTO>CATEGORYstatic StringCLASS_NAMEstatic BasicProperty<Boolean,CustomFieldPossibleValueDTO>DEFAULT_VALUEstatic BasicProperty<CustomFieldVO,CustomFieldPossibleValueDTO>FIELDstatic BasicProperty<String,CustomFieldPossibleValueDTO>INTERNAL_NAMEstatic BasicProperty<String,CustomFieldPossibleValueDTO>VALUE-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description CustomFieldPossibleValueDTO()CustomFieldPossibleValueDTO(Long id)CustomFieldPossibleValueDTO(Property<T,? super CustomFieldPossibleValueDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()CustomFieldPossibleValueCategoryVOgetCategory()CustomFieldVOgetField()StringgetInternalName()StringgetValue()booleanisDefaultValue()voidsetCategory(CustomFieldPossibleValueCategoryVO category)voidsetDefaultValue(boolean defaultValue)voidsetField(CustomFieldVO field)voidsetInternalName(String internalName)voidsetValue(String value)StringtoString()-
Methods inherited from class org.cyclos.model.EntityDTO
getVersion, isPersistent, isTransient, setVersion
-
Methods inherited from class org.cyclos.model.EntityModel
equals, getId, hashCode, setId
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, changes, clearAttributes, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, set, set, setAttribute, setWithPropagationId
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
CATEGORY
public static final BasicProperty<CustomFieldPossibleValueCategoryVO,CustomFieldPossibleValueDTO> CATEGORY
-
DEFAULT_VALUE
public static final BasicProperty<Boolean,CustomFieldPossibleValueDTO> DEFAULT_VALUE
-
FIELD
public static final BasicProperty<CustomFieldVO,CustomFieldPossibleValueDTO> FIELD
-
INTERNAL_NAME
public static final BasicProperty<String,CustomFieldPossibleValueDTO> INTERNAL_NAME
-
VALUE
public static final BasicProperty<String,CustomFieldPossibleValueDTO> VALUE
-
-
Constructor Detail
-
CustomFieldPossibleValueDTO
public CustomFieldPossibleValueDTO()
-
CustomFieldPossibleValueDTO
public CustomFieldPossibleValueDTO(Long id)
-
CustomFieldPossibleValueDTO
public CustomFieldPossibleValueDTO(Property<T,? super CustomFieldPossibleValueDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classEntityDTO
-
getCategory
public CustomFieldPossibleValueCategoryVO getCategory()
- Specified by:
getCategoryin interfaceICustomFieldPossibleValue<CustomFieldPossibleValueCategoryVO>
-
setCategory
public void setCategory(CustomFieldPossibleValueCategoryVO category)
-
isDefaultValue
public boolean isDefaultValue()
-
setDefaultValue
public void setDefaultValue(boolean defaultValue)
-
getField
public CustomFieldVO getField()
-
setField
public void setField(CustomFieldVO field)
-
getInternalName
public String getInternalName()
- Specified by:
getInternalNamein interfaceIInternalNamedEntity- Returns:
- the internal name.
-
setInternalName
public void setInternalName(String internalName)
- Specified by:
setInternalNamein interfaceIInternalNamedEntity- Parameters:
internalName- the internal name to be set.
-
getValue
public String getValue()
- Specified by:
getValuein interfaceICustomFieldPossibleValue<CustomFieldPossibleValueCategoryVO>
-
setValue
public void setValue(String value)
-
toString
public String toString()
- Overrides:
toStringin classEntityModel
-
-