com.sun.enterprise.admin.servermgmt
Class StringValidator

java.lang.Object
  extended by com.sun.enterprise.admin.servermgmt.Validator
      extended by com.sun.enterprise.admin.servermgmt.StringValidator
Direct Known Subclasses:
RepositoryNameValidator

public class StringValidator
extends Validator

Validator class for domain config entries whose type is java.lang.String.


Constructor Summary
StringValidator(String name)
          Constructs new StringValidator object.
 
Method Summary
 void validate(Object str)
          Validates the given value for the given entry.
 
Methods inherited from class com.sun.enterprise.admin.servermgmt.Validator
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringValidator

public StringValidator(String name)
Constructs new StringValidator object.

Parameters:
name -
Method Detail

validate

public void validate(Object str)
              throws InvalidConfigException
Validates the given value for the given entry. This method first invokes its superclass's validate method and then checks additional string validations such as 0 length.

Overrides:
validate in class Validator
Throws:
InvalidConfigException


Copyright © 2012 GlassFish Community. All Rights Reserved.