public class RestrictionModel extends ItemModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
_VOUCHERRESTRICTIONSRELATION
Generated relation code constant for relation
VoucherRestrictionsRelation defining source attribute voucher in extension voucher. |
static java.lang.String |
DESCRIPTION
Generated constant - Attribute key of
Restriction.description attribute defined at extension voucher. |
static java.lang.String |
POSITIVE
Generated constant - Attribute key of
Restriction.positive attribute defined at extension voucher. |
static java.lang.String |
RESTRICTIONTYPE
Generated constant - Attribute key of
Restriction.restrictionType attribute defined at extension voucher. |
static java.lang.String |
VIOLATIONMESSAGE
Generated constant - Attribute key of
Restriction.violationMessage attribute defined at extension voucher. |
static java.lang.String |
VOUCHER
Generated constant - Attribute key of
Restriction.voucher attribute defined at extension voucher. |
static java.lang.String |
VOUCHERPOS
Generated constant - Attribute key of
Restriction.voucherPOS attribute defined at extension voucher. |
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
RestrictionModel()
Generated constructor - Default constructor for generic creation.
|
RestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
RestrictionModel(ItemModel _owner,
VoucherModel _voucher)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
RestrictionModel(VoucherModel _voucher)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Generated method - Getter of the
Restriction.description attribute defined at extension voucher. |
java.lang.String |
getDescription(java.util.Locale loc)
Generated method - Getter of the
Restriction.description attribute defined at extension voucher. |
java.lang.Boolean |
getPositive()
Generated method - Getter of the
Restriction.positive attribute defined at extension voucher. |
java.lang.String |
getRestrictionType()
Generated method - Getter of the
Restriction.restrictionType attribute defined at extension voucher. |
java.lang.String |
getRestrictionType(java.util.Locale loc)
Generated method - Getter of the
Restriction.restrictionType attribute defined at extension voucher. |
java.lang.String |
getViolationMessage()
Generated method - Getter of the
Restriction.violationMessage attribute defined at extension voucher. |
java.lang.String |
getViolationMessage(java.util.Locale loc)
Generated method - Getter of the
Restriction.violationMessage attribute defined at extension voucher. |
VoucherModel |
getVoucher()
Generated method - Getter of the
Restriction.voucher attribute defined at extension voucher. |
void |
setDescription(java.lang.String value)
Generated method - Setter of
Restriction.description attribute defined at extension voucher. |
void |
setDescription(java.lang.String value,
java.util.Locale loc)
Generated method - Setter of
Restriction.description attribute defined at extension voucher. |
void |
setPositive(java.lang.Boolean value)
Generated method - Setter of
Restriction.positive attribute defined at extension voucher. |
void |
setViolationMessage(java.lang.String value)
Generated method - Setter of
Restriction.violationMessage attribute defined at extension voucher. |
void |
setViolationMessage(java.lang.String value,
java.util.Locale loc)
Generated method - Setter of
Restriction.violationMessage attribute defined at extension voucher. |
void |
setVoucher(VoucherModel value)
Generated method - Initial setter of
Restriction.voucher attribute defined at extension voucher. |
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, 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 java.lang.String _TYPECODE
public static final java.lang.String _VOUCHERRESTRICTIONSRELATION
VoucherRestrictionsRelation defining source attribute voucher in extension voucher.public static final java.lang.String POSITIVE
Restriction.positive attribute defined at extension voucher.public static final java.lang.String DESCRIPTION
Restriction.description attribute defined at extension voucher.public static final java.lang.String VIOLATIONMESSAGE
Restriction.violationMessage attribute defined at extension voucher.public static final java.lang.String RESTRICTIONTYPE
Restriction.restrictionType attribute defined at extension voucher.public static final java.lang.String VOUCHERPOS
Restriction.voucherPOS attribute defined at extension voucher.public static final java.lang.String VOUCHER
Restriction.voucher attribute defined at extension voucher.public RestrictionModel()
public RestrictionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public RestrictionModel(VoucherModel _voucher)
_voucher - initial attribute declared by type Restriction at extension voucher@Deprecated public RestrictionModel(ItemModel _owner, VoucherModel _voucher)
_owner - initial attribute declared by type Item at extension core_voucher - initial attribute declared by type Restriction at extension voucher@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Restriction.description attribute defined at extension voucher.@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Restriction.description attribute defined at extension voucher.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="positive", type=GETTER) public java.lang.Boolean getPositive()
Restriction.positive attribute defined at extension voucher.@Accessor(qualifier="restrictionType", type=GETTER) public java.lang.String getRestrictionType()
Restriction.restrictionType attribute defined at extension voucher.@Accessor(qualifier="restrictionType", type=GETTER) public java.lang.String getRestrictionType(java.util.Locale loc)
Restriction.restrictionType attribute defined at extension voucher.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="violationMessage", type=GETTER) public java.lang.String getViolationMessage()
Restriction.violationMessage attribute defined at extension voucher.@Accessor(qualifier="violationMessage", type=GETTER) public java.lang.String getViolationMessage(java.util.Locale loc)
Restriction.violationMessage attribute defined at extension voucher.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="voucher", type=GETTER) public VoucherModel getVoucher()
Restriction.voucher attribute defined at extension voucher.@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Restriction.description attribute defined at extension voucher.value - the description - the description of the restriction.@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Restriction.description attribute defined at extension voucher.value - the description - the description of the restriction.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="positive", type=SETTER) public void setPositive(java.lang.Boolean value)
Restriction.positive attribute defined at extension voucher.value - the positive - Specifies if this restriction is a positive (true) or negative
(false) one.@Accessor(qualifier="violationMessage", type=SETTER) public void setViolationMessage(java.lang.String value)
Restriction.violationMessage attribute defined at extension voucher.value - the violationMessage - the message to return if the restriction is violated (not fulfilled).@Accessor(qualifier="violationMessage", type=SETTER) public void setViolationMessage(java.lang.String value, java.util.Locale loc)
Restriction.violationMessage attribute defined at extension voucher.value - the violationMessage - the message to return if the restriction is violated (not fulfilled).loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="voucher", type=SETTER) public void setVoucher(VoucherModel value)
Restriction.voucher attribute defined at extension voucher. Can only be used at creation of model - before first save.value - the voucherCopyright © 2018 SAP SE. All Rights Reserved.