Package de.hybris.bootstrap.typesystem
Class YEnumValue
- java.lang.Object
-
- de.hybris.bootstrap.typesystem.YNameSpaceElement
-
- de.hybris.bootstrap.typesystem.YTypeSystemElement
-
- de.hybris.bootstrap.typesystem.YEnumValue
-
- All Implemented Interfaces:
java.lang.Comparable<YEnumValue>
public class YEnumValue extends YTypeSystemElement implements java.lang.Comparable<YEnumValue>
-
-
Constructor Summary
Constructors Constructor Description YEnumValue(YNamespace container, java.lang.String enumTypeCode, java.lang.String code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(YEnumValue enumValue)java.lang.StringgetCode()protected java.lang.StringgetDefaultMetaTypeCode()java.lang.StringgetDescription()YEnumTypegetEnumType()java.lang.StringgetEnumTypeCode()intgetPosition()booleanisDefault()voidsetDefault(boolean isDefault)voidsetDescription(java.lang.String description)voidsetPosition(int position)voidvalidate()Validates the element.-
Methods inherited from class de.hybris.bootstrap.typesystem.YTypeSystemElement
addCustomProperties, addCustomProperty, getCustomProps, getMetaType, getMetaTypeCode, isAutocreate, isGenerate, resetCaches, setAutocreate, setGenerate, setMetaTypeCode
-
Methods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, setLoaderInfo, toString
-
-
-
-
Constructor Detail
-
YEnumValue
public YEnumValue(YNamespace container, java.lang.String enumTypeCode, java.lang.String code)
-
-
Method Detail
-
getCode
public java.lang.String getCode()
-
getEnumTypeCode
public java.lang.String getEnumTypeCode()
-
getEnumType
public YEnumType getEnumType()
-
isDefault
public boolean isDefault()
-
setDefault
public void setDefault(boolean isDefault)
-
getPosition
public int getPosition()
-
setPosition
public void setPosition(int position)
-
compareTo
public int compareTo(YEnumValue enumValue)
- Specified by:
compareToin interfacejava.lang.Comparable<YEnumValue>
-
getDefaultMetaTypeCode
protected java.lang.String getDefaultMetaTypeCode()
- Specified by:
getDefaultMetaTypeCodein classYTypeSystemElement
-
validate
public void validate()
Description copied from class:YNameSpaceElementValidates the element. This should check whether or not lazy references can be resolved or any data is missing.- Overrides:
validatein classYTypeSystemElement
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
-