Class RepositoryNameValidator
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.Validator
-
- com.sun.enterprise.admin.servermgmt.StringValidator
-
- 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
Constructors Constructor Description RepositoryNameValidator(String name)Constructs new RepositoryNameValidator object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckValidName(String name)voidcheckValidObjectNameToken(String name)voidcheckValidXmlToken(String name)Implementation copied from com.sun.enterprise.admin.verifier.tests.StaticTestvoidvalidate(Object str)Validates the given value for the given entry.
-
-
-
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:
validatein classStringValidator- 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
-
-