com.sun.enterprise.admin.servermgmt
Class RepositoryNameValidator

java.lang.Object
  extended by com.sun.enterprise.admin.servermgmt.Validator
      extended by com.sun.enterprise.admin.servermgmt.StringValidator
          extended by com.sun.enterprise.admin.servermgmt.RepositoryNameValidator

public class RepositoryNameValidator
extends StringValidator

Validates the repository name. A repository name must be a - valid file name, - valid xml CDATA value & - valid javax.management.ObjectName property value.


Constructor Summary
RepositoryNameValidator(String name)
          Constructs new RepositoryNameValidator object.
 
Method Summary
 void checkValidName(String name)
           
 void checkValidObjectNameToken(String name)
           
 void checkValidXmlToken(String name)
          Implementation copied from com.sun.enterprise.admin.verifier.tests.StaticTest
 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

RepositoryNameValidator

public RepositoryNameValidator(String name)
Constructs new RepositoryNameValidator 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 performs additional validations.

Overrides:
validate in class StringValidator
Throws:
InvalidConfigException

checkValidName

public void checkValidName(String name)
                    throws InvalidConfigException
Throws:
InvalidConfigException

checkValidXmlToken

public void checkValidXmlToken(String name)
                        throws InvalidConfigException
Implementation copied from com.sun.enterprise.admin.verifier.tests.StaticTest

Throws:
InvalidConfigException

checkValidObjectNameToken

public void checkValidObjectNameToken(String name)
                               throws InvalidConfigException
Throws:
InvalidConfigException


Copyright © 2012 GlassFish Community. All Rights Reserved.