public class TypeModel extends TypeManagerManagedModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
CODE
Generated constant - Attribute key of
Type.code attribute defined at extension core. |
static String |
DEFAULTVALUE
Generated constant - Attribute key of
Type.defaultValue attribute defined at extension core. |
static String |
DESCRIPTION
Generated constant - Attribute key of
Type.description attribute defined at extension core. |
static String |
XMLDEFINITION
Generated constant - Attribute key of
Type.xmldefinition attribute defined at extension core. |
AUTOCREATE, DEPRECATED, EXTENSIONNAME, GENERATE, NAME_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
TypeModel()
Generated constructor - Default constructor for generic creation.
|
TypeModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
TypeModel(String _code,
Boolean _generate)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
TypeModel(String _code,
Boolean _generate,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Generated method - Getter of the
Type.code attribute defined at extension core. |
Object |
getDefaultValue()
Generated method - Getter of the
Type.defaultValue attribute defined at extension core. |
String |
getDescription()
Generated method - Getter of the
Type.description attribute defined at extension core. |
String |
getDescription(Locale loc)
Generated method - Getter of the
Type.description attribute defined at extension core. |
String |
getXmldefinition()
Generated method - Getter of the
Type.xmldefinition attribute defined at extension core. |
void |
setCode(String value)
Generated method - Initial setter of
Type.code attribute defined at extension core. |
void |
setDefaultValue(Object value)
Generated method - Setter of
Type.defaultValue attribute defined at extension core. |
void |
setDescription(String value)
Generated method - Setter of
Type.description attribute defined at extension core. |
void |
setDescription(String value,
Locale loc)
Generated method - Setter of
Type.description attribute defined at extension core. |
getAutocreate, getDeprecated, getExtensionName, getGenerate, getName, getName, setAutocreate, setExtensionName, setGenerate, setName, setNamegetComments, getCreationtime, getModifiedtime, getOwner, setComments, setCreationtime, setModifiedtime, setOwnerequals, 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, writeReplacepublic static final String _TYPECODE
public static final String XMLDEFINITION
Type.xmldefinition attribute defined at extension core.public static final String CODE
Type.code attribute defined at extension core.public static final String DEFAULTVALUE
Type.defaultValue attribute defined at extension core.public static final String DESCRIPTION
Type.description attribute defined at extension core.public TypeModel()
public TypeModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public TypeModel(String _code, Boolean _generate)
_code - initial attribute declared by type Type at extension core_generate - initial attribute declared by type TypeManagerManaged at extension core@Deprecated public TypeModel(String _code, Boolean _generate, ItemModel _owner)
_code - initial attribute declared by type Type at extension core_generate - initial attribute declared by type TypeManagerManaged at extension core_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="code", type=GETTER) public String getCode()
Type.code attribute defined at extension core.@Accessor(qualifier="defaultValue", type=GETTER) public Object getDefaultValue()
Type.defaultValue attribute defined at extension core.@Accessor(qualifier="description", type=GETTER) public String getDescription()
Type.description attribute defined at extension core.@Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
Type.description attribute defined at extension core.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="xmldefinition", type=GETTER) public String getXmldefinition()
Type.xmldefinition attribute defined at extension core.@Accessor(qualifier="code", type=SETTER) public void setCode(String value)
Type.code attribute defined at extension core. Can only be used at creation of model - before first save.value - the code@Accessor(qualifier="defaultValue", type=SETTER) public void setDefaultValue(Object value)
Type.defaultValue attribute defined at extension core.value - the defaultValue@Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
Type.description attribute defined at extension core.value - the description@Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
Type.description attribute defined at extension core.value - the descriptionloc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data languageCopyright © 2017 SAP SE. All Rights Reserved.