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:
java.io.Serializable
public class XorNullReferenceConstraintModel extends TypeConstraintModel
Generated model class for type XorNullReferenceConstraint first defined at extension validation.Custom constraint for presenting type scoped constraint.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringFIRSTFIELDNAMEGenerated constant - Attribute key ofXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.static java.lang.StringSECONDFIELDNAMEGenerated 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, TYPE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description XorNullReferenceConstraintModel()Generated constructor - Default constructor for generic creation.XorNullReferenceConstraintModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextXorNullReferenceConstraintModel(java.lang.Class _annotation, java.lang.String _firstFieldName, java.lang.String _id, ItemModel _owner, java.lang.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(java.lang.Class _annotation, java.lang.String _firstFieldName, java.lang.String _id, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFirstFieldName()Generated method - Getter of theXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.java.lang.StringgetSecondFieldName()Generated method - Getter of theXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.voidsetFirstFieldName(java.lang.String value)Generated method - Setter ofXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.voidsetSecondFieldName(java.lang.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, setType
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods 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 Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
FIRSTFIELDNAME
public static final java.lang.String FIRSTFIELDNAME
Generated constant - Attribute key ofXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.- See Also:
- Constant Field Values
-
SECONDFIELDNAME
public static final java.lang.String SECONDFIELDNAME
Generated constant - Attribute key ofXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XorNullReferenceConstraintModel
public XorNullReferenceConstraintModel()
Generated constructor - Default constructor for generic creation.
-
XorNullReferenceConstraintModel
public XorNullReferenceConstraintModel(ItemModelContext ctx)
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(java.lang.Class _annotation, java.lang.String _firstFieldName, java.lang.String _id, java.lang.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(java.lang.Class _annotation, java.lang.String _firstFieldName, java.lang.String _id, ItemModel _owner, java.lang.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 Detail
-
getFirstFieldName
@Accessor(qualifier="firstFieldName", type=GETTER) public java.lang.String getFirstFieldName()
Generated method - Getter of theXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.- Returns:
- the firstFieldName - First field name for XOR null reference logic
-
getSecondFieldName
@Accessor(qualifier="secondFieldName", type=GETTER) public java.lang.String getSecondFieldName()
Generated method - Getter of theXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.- Returns:
- the secondFieldName - Second field name for XOR null reference logic
-
setFirstFieldName
@Accessor(qualifier="firstFieldName", type=SETTER) public void setFirstFieldName(java.lang.String value)
Generated method - Setter ofXorNullReferenceConstraint.firstFieldNameattribute defined at extensionvalidation.- Parameters:
value- the firstFieldName - First field name for XOR null reference logic
-
setSecondFieldName
@Accessor(qualifier="secondFieldName", type=SETTER) public void setSecondFieldName(java.lang.String value)
Generated method - Setter ofXorNullReferenceConstraint.secondFieldNameattribute defined at extensionvalidation.- Parameters:
value- the secondFieldName - Second field name for XOR null reference logic
-
-