public class XorNullReferenceConstraintModel extends TypeConstraintModel
Custom constraint for presenting type scoped constraint.
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
FIRSTFIELDNAME
Generated constant - Attribute key of
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation. |
static String |
SECONDFIELDNAME
Generated constant - Attribute key of
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation. |
ACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
XorNullReferenceConstraintModel()
Generated constructor - Default constructor for generic creation.
|
XorNullReferenceConstraintModel(Class _annotation,
String _firstFieldName,
String _id,
ItemModel _owner,
String _secondFieldName)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
XorNullReferenceConstraintModel(Class _annotation,
String _firstFieldName,
String _id,
String _secondFieldName)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
XorNullReferenceConstraintModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFirstFieldName()
Generated method - Getter of the
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation. |
String |
getSecondFieldName()
Generated method - Getter of the
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation. |
void |
setFirstFieldName(String value)
Generated method - Setter of
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation. |
void |
setSecondFieldName(String value)
Generated method - Setter of
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation. |
getAnnotation, getConstraintGroups, getDefaultMessage, getDefaultMessage, getId, getMessage, getMessage, getSeverity, getTarget, getType, isActive, isNeedReload, setActive, setAnnotation, setConstraintGroups, setId, setMessage, setMessage, setSeverity, setTarget, setTypegetComments, 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 FIRSTFIELDNAME
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation.public static final String SECONDFIELDNAME
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation.public XorNullReferenceConstraintModel()
public XorNullReferenceConstraintModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public XorNullReferenceConstraintModel(Class _annotation, String _firstFieldName, String _id, String _secondFieldName)
_annotation - initial attribute declared by type XorNullReferenceConstraint at extension validation_firstFieldName - initial attribute declared by type XorNullReferenceConstraint at extension validation_id - initial attribute declared by type AbstractConstraint at extension validation_secondFieldName - initial attribute declared by type XorNullReferenceConstraint at extension validation@Deprecated public XorNullReferenceConstraintModel(Class _annotation, String _firstFieldName, String _id, ItemModel _owner, String _secondFieldName)
_annotation - initial attribute declared by type XorNullReferenceConstraint at extension validation_firstFieldName - initial attribute declared by type XorNullReferenceConstraint at extension validation_id - initial attribute declared by type AbstractConstraint at extension validation_owner - initial attribute declared by type Item at extension core_secondFieldName - initial attribute declared by type XorNullReferenceConstraint at extension validation@Accessor(qualifier="firstFieldName", type=GETTER) public String getFirstFieldName()
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation.@Accessor(qualifier="secondFieldName", type=GETTER) public String getSecondFieldName()
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation.@Accessor(qualifier="firstFieldName", type=SETTER) public void setFirstFieldName(String value)
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation.value - the firstFieldName - First field name for XOR null reference logic@Accessor(qualifier="secondFieldName", type=SETTER) public void setSecondFieldName(String value)
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation.value - the secondFieldName - Second field name for XOR null reference logicCopyright © 2017 SAP SE. All Rights Reserved.