com.ca.jcs.validator.meta
Class SingleValuedPropertyValidator

java.lang.Object
  extended by com.ca.jcs.cfg.Vetoable
      extended by com.ca.jcs.validator.meta.ContextAwarePropertyValidator
          extended by com.ca.jcs.validator.meta.SingleValuedPropertyValidator
All Implemented Interfaces:
PropertyValidatorBase

public class SingleValuedPropertyValidator
extends ContextAwarePropertyValidator

Validates that a single-valued property is behaving it's logical constraints.


Field Summary
static String SINGLE_VALUED_MSG
           
 
Constructor Summary
SingleValuedPropertyValidator(DataModelProperty prop)
          Note that currAttributes is usually a lazy proxy so that the existing attributes for an object are only queried when they are explicitly requested.
 
Method Summary
 ErrorMessages validate(Attribute attr, AddOpContext ctx)
          Create/add case, values can be accessed from provided ctx.
 ErrorMessages validate(ModificationItem modItem, ValidatorModifyOpContext ctx)
          Update/modify case, values can be accessed from provided ctx.
 
Methods inherited from class com.ca.jcs.cfg.Vetoable
isVetoed, setVetoed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLE_VALUED_MSG

public static final String SINGLE_VALUED_MSG
See Also:
Constant Field Values
Constructor Detail

SingleValuedPropertyValidator

public SingleValuedPropertyValidator(DataModelProperty prop)
Note that currAttributes is usually a lazy proxy so that the existing attributes for an object are only queried when they are explicitly requested.

Parameters:
prop - Property containing metadata for property to be
Method Detail

validate

public ErrorMessages validate(Attribute attr,
                              AddOpContext ctx)
Description copied from class: ContextAwarePropertyValidator
Create/add case, values can be accessed from provided ctx.

Specified by:
validate in class ContextAwarePropertyValidator

validate

public ErrorMessages validate(ModificationItem modItem,
                              ValidatorModifyOpContext ctx)
Description copied from class: ContextAwarePropertyValidator
Update/modify case, values can be accessed from provided ctx.

Specified by:
validate in class ContextAwarePropertyValidator


Created 2011-07-14 13:27 EST