public class XorNullReferenceConstraintModel extends TypeConstraintModel
Custom constraint for presenting type scoped constraint.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
FIRSTFIELDNAME
Generated constant - Attribute key of
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation. |
static java.lang.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, PK, SEALED| Constructor and Description |
|---|
XorNullReferenceConstraintModel()
Generated constructor - Default constructor for generic creation.
|
XorNullReferenceConstraintModel(java.lang.Class _annotation,
java.lang.String _firstFieldName,
java.lang.String _id,
ItemModel _owner,
java.lang.String _secondFieldName)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
XorNullReferenceConstraintModel(java.lang.Class _annotation,
java.lang.String _firstFieldName,
java.lang.String _id,
java.lang.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 |
|---|---|
java.lang.String |
getFirstFieldName()
Generated method - Getter of the
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation. |
java.lang.String |
getSecondFieldName()
Generated method - Getter of the
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation. |
void |
setFirstFieldName(java.lang.String value)
Generated method - Setter of
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation. |
void |
setSecondFieldName(java.lang.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, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerpublic static final java.lang.String _TYPECODE
public static final java.lang.String FIRSTFIELDNAME
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation.public static final java.lang.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(java.lang.Class _annotation,
java.lang.String _firstFieldName,
java.lang.String _id,
java.lang.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(java.lang.Class _annotation,
java.lang.String _firstFieldName,
java.lang.String _id,
ItemModel _owner,
java.lang.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 validationpublic java.lang.String getFirstFieldName()
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation.public java.lang.String getSecondFieldName()
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation.public void setFirstFieldName(java.lang.String value)
XorNullReferenceConstraint.firstFieldName attribute defined at extension validation.value - the firstFieldName - First field name for XOR null reference logicpublic void setSecondFieldName(java.lang.String value)
XorNullReferenceConstraint.secondFieldName attribute defined at extension validation.value - the secondFieldName - Second field name for XOR null reference logicCopyright © 2018 SAP SE. All Rights Reserved.