public class UnitModel extends ItemModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
CODE
Generated constant - Attribute key of
Unit.code attribute defined at extension core. |
static String |
CONVERSION
Generated constant - Attribute key of
Unit.conversion attribute defined at extension core. |
static String |
NAME
Generated constant - Attribute key of
Unit.name attribute defined at extension core. |
static String |
SAPCODE
Generated constant - Attribute key of
Unit.sapCode attribute defined at extension sapmodel. |
static String |
UNITTYPE
Generated constant - Attribute key of
Unit.unitType attribute defined at extension core. |
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
UnitModel()
Generated constructor - Default constructor for generic creation.
|
UnitModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
UnitModel(String _code,
ItemModel _owner,
String _unitType)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
UnitModel(String _code,
String _unitType)
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
Unit.code attribute defined at extension core. |
Double |
getConversion()
Generated method - Getter of the
Unit.conversion attribute defined at extension core. |
String |
getName()
Generated method - Getter of the
Unit.name attribute defined at extension core. |
String |
getName(Locale loc)
Generated method - Getter of the
Unit.name attribute defined at extension core. |
String |
getSapCode()
Generated method - Getter of the
Unit.sapCode attribute defined at extension sapmodel. |
String |
getUnitType()
Generated method - Getter of the
Unit.unitType attribute defined at extension core. |
void |
setCode(String value)
Generated method - Setter of
Unit.code attribute defined at extension core. |
void |
setConversion(Double value)
Generated method - Setter of
Unit.conversion attribute defined at extension core. |
void |
setName(String value)
Generated method - Setter of
Unit.name attribute defined at extension core. |
void |
setName(String value,
Locale loc)
Generated method - Setter of
Unit.name attribute defined at extension core. |
void |
setSapCode(String value)
Generated method - Setter of
Unit.sapCode attribute defined at extension sapmodel. |
void |
setUnitType(String value)
Generated method - Setter of
Unit.unitType attribute defined at extension core. |
getComments, 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 CODE
Unit.code attribute defined at extension core.public static final String CONVERSION
Unit.conversion attribute defined at extension core.public static final String NAME
Unit.name attribute defined at extension core.public static final String UNITTYPE
Unit.unitType attribute defined at extension core.public static final String SAPCODE
Unit.sapCode attribute defined at extension sapmodel.public UnitModel()
public UnitModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public UnitModel(String _code, String _unitType)
_code - initial attribute declared by type Unit at extension core_unitType - initial attribute declared by type Unit at extension core@Deprecated public UnitModel(String _code, ItemModel _owner, String _unitType)
_code - initial attribute declared by type Unit at extension core_owner - initial attribute declared by type Item at extension core_unitType - initial attribute declared by type Unit at extension core@Accessor(qualifier="code", type=GETTER) public String getCode()
Unit.code attribute defined at extension core.@Accessor(qualifier="conversion", type=GETTER) public Double getConversion()
Unit.conversion attribute defined at extension core.@Accessor(qualifier="name", type=GETTER) public String getName()
Unit.name attribute defined at extension core.@Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
Unit.name attribute defined at extension core.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="sapCode", type=GETTER) public String getSapCode()
Unit.sapCode attribute defined at extension sapmodel.@Accessor(qualifier="unitType", type=GETTER) public String getUnitType()
Unit.unitType attribute defined at extension core.@Accessor(qualifier="code", type=SETTER) public void setCode(String value)
Unit.code attribute defined at extension core.value - the code@Accessor(qualifier="conversion", type=SETTER) public void setConversion(Double value)
Unit.conversion attribute defined at extension core.value - the conversion@Accessor(qualifier="name", type=SETTER) public void setName(String value)
Unit.name attribute defined at extension core.value - the name@Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
Unit.name attribute defined at extension core.value - the nameloc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="sapCode", type=SETTER) public void setSapCode(String value)
Unit.sapCode attribute defined at extension sapmodel.value - the sapCode - SAP Code (ERP Table T006 field MSEHI)Copyright © 2017 SAP SE. All Rights Reserved.