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 PatternValidator

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

public class PatternValidator
extends java.lang.Object

Constructor Summary
`PatternValidator()` Creates a new instance of PatternValidator
`PatternValidator(java.lang.String pattern)`

Method Summary
`java.lang.String` | `getPattern()` get the pattern of the pattern validator
`void` | `validate(ObjectField field)`
`void` | `validate(java.lang.String value)`

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

Constructor Detail

### PatternValidator

    public PatternValidator()

  Creates a new instance of PatternValidator

### PatternValidator

    public PatternValidator(java.lang.String pattern)
                     throws java.util.regex.PatternSyntaxException

  Parameters:
    `pattern` - a regular expression

Method Detail

### getPattern

    public java.lang.String getPattern()

  get the pattern of the pattern validator

  Returns:
    String pattern

### validate

    public void validate(ObjectField field)
                  throws ValidationException

  Parameters:
    `field` - a string value
  Throws:
    `ValidationException` - if field and patter do not match

### validate

    public void validate(java.lang.String value)
                  throws ValidationException

  Parameters:
    `value` - a string value
  Throws:
    `ValidationException` - if field and patter do not match

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.