Class XorNullReferenceConstraintModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.validation.model.constraints.AbstractConstraintModel
de.hybris.platform.validation.model.constraints.TypeConstraintModel
de.hybris.platform.validation.model.constraints.XorNullReferenceConstraintModel
- All Implemented Interfaces:
Serializable
Generated model class for type XorNullReferenceConstraint first defined at extension validation.
Custom constraint for presenting type scoped constraint.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.static final StringGenerated constant - Attribute key ofXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.Fields inherited from class de.hybris.platform.validation.model.constraints.AbstractConstraintModel
ACTIVE, ANNOTATION, CONSTRAINTGROUPS, DEFAULTMESSAGE, ID, MESSAGE, NEEDRELOAD, SEVERITY, TARGET, TYPEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextXorNullReferenceConstraintModel(Class _annotation, String _firstFieldName, String _id, ItemModel _owner, String _secondFieldName) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersXorNullReferenceConstraintModel(Class _annotation, String _firstFieldName, String _id, String _secondFieldName) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.Generated method - Getter of theXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.voidsetFirstFieldName(String value) Generated method - Setter ofXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.voidsetSecondFieldName(String value) Generated method - Setter ofXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.Methods inherited from class de.hybris.platform.validation.model.constraints.AbstractConstraintModel
getAnnotation, getConstraintGroups, getDefaultMessage, getDefaultMessage, getId, getMessage, getMessage, getSeverity, getTarget, getType, isActive, isNeedReload, setActive, setAnnotation, setConstraintGroups, setId, setMessage, setMessage, setSeverity, setTarget, setTypeMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, 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, writeReplace
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
FIRSTFIELDNAME
Generated constant - Attribute key ofXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.- See Also:
-
SECONDFIELDNAME
Generated constant - Attribute key ofXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.- See Also:
-
-
Constructor Details
-
XorNullReferenceConstraintModel
public XorNullReferenceConstraintModel()Generated constructor - Default constructor for generic creation. -
XorNullReferenceConstraintModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
XorNullReferenceConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public XorNullReferenceConstraintModel(Class _annotation, String _firstFieldName, String _id, String _secondFieldName) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_annotation- initial attribute declared by typeXorNullReferenceConstraintat extensionvalidation_firstFieldName- initial attribute declared by typeXorNullReferenceConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation_secondFieldName- initial attribute declared by typeXorNullReferenceConstraintat extensionvalidation
-
XorNullReferenceConstraintModel
@Deprecated(since="4.1.1", forRemoval=true) public XorNullReferenceConstraintModel(Class _annotation, String _firstFieldName, String _id, ItemModel _owner, String _secondFieldName) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_annotation- initial attribute declared by typeXorNullReferenceConstraintat extensionvalidation_firstFieldName- initial attribute declared by typeXorNullReferenceConstraintat extensionvalidation_id- initial attribute declared by typeAbstractConstraintat extensionvalidation_owner- initial attribute declared by typeItemat extensioncore_secondFieldName- initial attribute declared by typeXorNullReferenceConstraintat extensionvalidation
-
-
Method Details
-
getFirstFieldName
Generated method - Getter of theXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.- Returns:
- the firstFieldName - First field name for XOR null reference logic
-
getSecondFieldName
Generated method - Getter of theXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.- Returns:
- the secondFieldName - Second field name for XOR null reference logic
-
setFirstFieldName
Generated method - Setter ofXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.- Parameters:
value- the firstFieldName - First field name for XOR null reference logic
-
setSecondFieldName
Generated method - Setter ofXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.- Parameters:
value- the secondFieldName - Second field name for XOR null reference logic
-