public abstract class AbstractGiftListRulesValidator extends java.lang.Object implements GiftListRulesValidator
GiftListRulesValidator
interface. The default implementation of the class always return false for all
validator methods.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AbstractGiftListRulesValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
validateOnCreate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates the gift list noun when a new gift list is being created.
|
boolean |
validateOnDelete(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates the gift list noun or the noun part when an existing gift list
is being deleted.
|
boolean |
validateOnUpdate(java.lang.Object noun,
java.lang.Object nounPart,
java.lang.Integer rule)
Validates the gift list noun or the noun part when a gift list is getting
updated.
|
public static final java.lang.String COPYRIGHT
public boolean validateOnCreate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
validateOnCreate
in interface GiftListRulesValidator
noun
- The GiftList
noun that needs to be validated.nounPart
- The GiftList
noun part which can be used, to
validate the part data against a rule, rather than using the
whole noun.rule
- The rule name.GiftListRuleValidationException
public boolean validateOnDelete(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
validateOnDelete
in interface GiftListRulesValidator
noun
- The GiftList
noun that needs to be validated.nounPart
- The GiftList
noun part which can be used, to
validate the part data against a rule, rather than using the
whole noun.rule
- The rule name.GiftListRuleValidationException
public boolean validateOnUpdate(java.lang.Object noun, java.lang.Object nounPart, java.lang.Integer rule) throws GiftListRuleValidationException
validateOnUpdate
in interface GiftListRulesValidator
noun
- The GiftList
noun that needs to be validated.nounPart
- The GiftList
noun part which can be used, to
validate the part data against a rule, rather than using the
whole noun.rule
- The rule name.GiftListRuleValidationException