com.sun.mdm.index.objects.validation
Class UserCodeValidator

java.lang.Object
  extended bycom.sun.mdm.index.objects.validation.UserCodeValidator
All Implemented Interfaces:
FieldValidator

public class UserCodeValidator
extends java.lang.Object
implements FieldValidator


Constructor Summary
UserCodeValidator(java.lang.String referencedField)
          Creates a new instance of UserCodeValidator
UserCodeValidator(java.lang.String referencedField, UserCodeRegistry userCodeRegistry)
          Creates a new instance of UserCodeValidator
 
Method Summary
 java.lang.String getReferencedFieldName()
           
 void setReferencedField(java.lang.String module, java.lang.String value)
           
 void validate(ObjectField field, boolean newObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserCodeValidator

public UserCodeValidator(java.lang.String referencedField)
Creates a new instance of UserCodeValidator


UserCodeValidator

public UserCodeValidator(java.lang.String referencedField,
                         UserCodeRegistry userCodeRegistry)
Creates a new instance of UserCodeValidator

Method Detail

getReferencedFieldName

public java.lang.String getReferencedFieldName()

setReferencedField

public void setReferencedField(java.lang.String module,
                               java.lang.String value)

validate

public void validate(ObjectField field,
                     boolean newObject)
              throws ValidationException
Description copied from interface: FieldValidator
callback to validate a field

Specified by:
validate in interface FieldValidator
Parameters:
field - object field
newObject - a new object
Throws:
ValidationException - if the value is missing for a required field or the spcefied filed is null


Sun Microsystems, Inc.