Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.mdm.index.objects.validation
Class ReferenceDescriptor

    java.lang.Object
      com.sun.mdm.index.objects.validation.ReferenceDescriptor

All Implemented Interfaces:
  FieldValidator

public class ReferenceDescriptor
extends java.lang.Object
implements FieldValidator

Constructor Summary
`ReferenceDescriptor(java.lang.String module)` Creates a new instance of ReferenceDescriptor
`ReferenceDescriptor(java.lang.String module, CodeRegistry codeRegistry)` Creates a new instance of ReferenceDescriptor

Method Summary
`java.lang.String` | `getModule()` Get the module name of this ReferenceDescriptor
`boolean` | `isValidCode(java.lang.String code)` Check if the sepcified value is a valid code
`void` | `validate(ObjectField field, boolean newObject)` Validate a ObjectField

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ReferenceDescriptor

    public ReferenceDescriptor(java.lang.String module)

  Creates a new instance of ReferenceDescriptor

  Parameters:
    `module` - module name

### ReferenceDescriptor

    public ReferenceDescriptor(java.lang.String module,
                               CodeRegistry codeRegistry)

  Creates a new instance of ReferenceDescriptor

  Parameters:
    `module` - module name

Method Detail

### getModule

    public java.lang.String getModule()

  Get the module name of this ReferenceDescriptor

  Returns:
    the module name of this ReferenceDescriptor

### isValidCode

    public boolean isValidCode(java.lang.String code)

  Check if the sepcified value is a valid code

  Parameters:
    `code` - code value
  Returns:
    true if valid code; false otherwise

### validate

    public void validate(ObjectField field,
                         boolean newObject)
                  throws ValidationException

  Validate a ObjectField

  Specified by:
    `validate` in interface `FieldValidator`
  Parameters:
    `field` - an object field
    `newObject` - a new object
  Throws:
    `ValidationException` - InvalidReferencedCode

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Sun Microsystems, Inc.