Package de.hybris.bootstrap.typesystem
Class YEnumType
- java.lang.Object
-
public class YEnumType extends YComposedType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.bootstrap.typesystem.YComposedType
YComposedType.YModelConstructor
-
-
Constructor Summary
Constructors Constructor Description YEnumType(YNamespace container, java.lang.String code)YEnumType(YNamespace container, java.lang.String code, java.lang.String superTypeCode, java.lang.String jaloClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallowMetaTypeInheritanceFrom(YComposedType superType)Dont inherit meta type from 'normal' composed types - using default meta type instead.protected java.lang.StringgetDefaultMetaTypeCode()java.lang.ObjectgetDefaultValue()java.lang.StringgetModelPackage()java.util.List<YEnumValue>getValues()booleanisDynamic()protected booleanisRootEnumType()voidsetDynamic(boolean dynamic)voidsetModelPackage(java.lang.String modelPackage)voidvalidate()Validates the element.-
Methods inherited from class de.hybris.bootstrap.typesystem.YComposedType
addConstructorSignatures, equals, getAllSubtypes, getAllSuperTypes, getAttribute, getAttributeIncludingSuperType, getAttributes, getCustomProps, getDeclaredAttributes, getDeployment, getDeploymentName, getDeprecatedSince, getJaloClass, getJaloClassName, getJaloOnlyClass, getJavaClassName, getMetaType, getOwnCustomProps, getOwnDeployment, getOwnJaloClass, getOwnJaloClassName, getRedeclaredAttributes, getSubtypes, getSuperType, getSuperTypeCode, getTypeDescription, getYModelConstructors, hashCode, isAbstract, isAssignableFrom, isGenerateModel, isJaloClassAbstract, isJaloOnly, isLegacyPersistence, isSingleton, isViewType, setAbstract, setDeploymentName, setDeprecatedSince, setGenerateModel, setJaloClassName, setJaloOnly, setLegacyPersistence, setSingleton, setTypeDescription
-
Methods inherited from class de.hybris.bootstrap.typesystem.YType
getCode, getDefaultValueDefinition, setDefaultValueDefinition, toString
-
Methods inherited from class de.hybris.bootstrap.typesystem.YTypeSystemElement
addCustomProperties, addCustomProperty, getMetaTypeCode, isAutocreate, isGenerate, resetCaches, setAutocreate, setGenerate, setMetaTypeCode
-
Methods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, setLoaderInfo
-
-
-
-
Constructor Detail
-
YEnumType
public YEnumType(YNamespace container, java.lang.String code)
-
YEnumType
public YEnumType(YNamespace container, java.lang.String code, java.lang.String superTypeCode, java.lang.String jaloClassName)
-
-
Method Detail
-
allowMetaTypeInheritanceFrom
protected boolean allowMetaTypeInheritanceFrom(YComposedType superType)
Dont inherit meta type from 'normal' composed types - using default meta type instead.- Overrides:
allowMetaTypeInheritanceFromin classYComposedType
-
isRootEnumType
protected boolean isRootEnumType()
-
getDefaultMetaTypeCode
protected java.lang.String getDefaultMetaTypeCode()
- Overrides:
getDefaultMetaTypeCodein classYComposedType
-
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 classYComposedType
-
getValues
public java.util.List<YEnumValue> getValues()
-
getDefaultValue
public java.lang.Object getDefaultValue()
-
isDynamic
public boolean isDynamic()
-
setDynamic
public void setDynamic(boolean dynamic)
-
getModelPackage
public java.lang.String getModelPackage()
-
setModelPackage
public void setModelPackage(java.lang.String modelPackage)
-
-