Class TypeModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.core.model.type.TypeManagerManagedModel
-
- de.hybris.platform.core.model.type.TypeModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AtomicTypeModel,CollectionTypeModel,ComposedTypeModel,MapTypeModel
public class TypeModel extends TypeManagerManagedModel
Generated model class for type Type first defined at extension core.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCODEGenerated constant - Attribute key ofType.codeattribute defined at extensioncore.static java.lang.StringDEFAULTVALUEGenerated constant - Attribute key ofType.defaultValueattribute defined at extensioncore.static java.lang.StringDESCRIPTIONGenerated constant - Attribute key ofType.descriptionattribute defined at extensioncore.static java.lang.StringXMLDEFINITIONGenerated constant - Attribute key ofType.xmldefinitionattribute defined at extensioncore.-
Fields inherited from class de.hybris.platform.core.model.type.TypeManagerManagedModel
AUTOCREATE, DEPRECATED, EXTENSIONNAME, GENERATE, NAME
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description TypeModel()Generated constructor - Default constructor for generic creation.TypeModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextTypeModel(java.lang.String _code, java.lang.Boolean _generate)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersTypeModel(java.lang.String _code, java.lang.Boolean _generate, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()Generated method - Getter of theType.codeattribute defined at extensioncore.java.lang.ObjectgetDefaultValue()Generated method - Getter of theType.defaultValueattribute defined at extensioncore.java.lang.StringgetDescription()Generated method - Getter of theType.descriptionattribute defined at extensioncore.java.lang.StringgetDescription(java.util.Locale loc)Generated method - Getter of theType.descriptionattribute defined at extensioncore.java.lang.StringgetXmldefinition()Generated method - Getter of theType.xmldefinitionattribute defined at extensioncore.voidsetCode(java.lang.String value)Generated method - Initial setter ofType.codeattribute defined at extensioncore.voidsetDefaultValue(java.lang.Object value)Generated method - Setter ofType.defaultValueattribute defined at extensioncore.voidsetDescription(java.lang.String value)Generated method - Setter ofType.descriptionattribute defined at extensioncore.voidsetDescription(java.lang.String value, java.util.Locale loc)Generated method - Setter ofType.descriptionattribute defined at extensioncore.-
Methods inherited from class de.hybris.platform.core.model.type.TypeManagerManagedModel
getAutocreate, getDeprecated, getExtensionName, getGenerate, getName, getName, setAutocreate, setExtensionName, setGenerate, setName, setName
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
XMLDEFINITION
public static final java.lang.String XMLDEFINITION
Generated constant - Attribute key ofType.xmldefinitionattribute defined at extensioncore.- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Generated constant - Attribute key ofType.codeattribute defined at extensioncore.- See Also:
- Constant Field Values
-
DEFAULTVALUE
public static final java.lang.String DEFAULTVALUE
Generated constant - Attribute key ofType.defaultValueattribute defined at extensioncore.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofType.descriptionattribute defined at extensioncore.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TypeModel
public TypeModel()
Generated constructor - Default constructor for generic creation.
-
TypeModel
public TypeModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
TypeModel
@Deprecated(since="4.1.1", forRemoval=true) public TypeModel(java.lang.String _code, java.lang.Boolean _generate)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeTypeat extensioncore_generate- initial attribute declared by typeTypeManagerManagedat extensioncore
-
TypeModel
@Deprecated(since="4.1.1", forRemoval=true) public TypeModel(java.lang.String _code, java.lang.Boolean _generate, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeTypeat extensioncore_generate- initial attribute declared by typeTypeManagerManagedat extensioncore_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getCode
@Accessor(qualifier="code", type=GETTER) public java.lang.String getCode()
Generated method - Getter of theType.codeattribute defined at extensioncore.- Returns:
- the code
-
getDefaultValue
@Accessor(qualifier="defaultValue", type=GETTER) public java.lang.Object getDefaultValue()
Generated method - Getter of theType.defaultValueattribute defined at extensioncore.- Returns:
- the defaultValue
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theType.descriptionattribute defined at extensioncore.- Returns:
- the description
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Generated method - Getter of theType.descriptionattribute defined at extensioncore.- Parameters:
loc- the value localization key- Returns:
- the description
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getXmldefinition
@Accessor(qualifier="xmldefinition", type=GETTER) public java.lang.String getXmldefinition()
Generated method - Getter of theType.xmldefinitionattribute defined at extensioncore.- Returns:
- the xmldefinition
-
setCode
@Accessor(qualifier="code", type=SETTER) public void setCode(java.lang.String value)
Generated method - Initial setter ofType.codeattribute defined at extensioncore. Can only be used at creation of model - before first save.- Parameters:
value- the code
-
setDefaultValue
@Accessor(qualifier="defaultValue", type=SETTER) public void setDefaultValue(java.lang.Object value)
Generated method - Setter ofType.defaultValueattribute defined at extensioncore.- Parameters:
value- the defaultValue
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofType.descriptionattribute defined at extensioncore.- Parameters:
value- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofType.descriptionattribute defined at extensioncore.- Parameters:
value- the descriptionloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
-