Class RepositoryNameValidator
java.lang.Object
com.sun.enterprise.admin.servermgmt.Validator
com.sun.enterprise.admin.servermgmt.StringValidator
com.sun.enterprise.admin.servermgmt.RepositoryNameValidator
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
ConstructorsConstructorDescriptionConstructs new RepositoryNameValidator object. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckValidName(String name) voidvoidcheckValidXmlToken(String name) Implementation copied from com.sun.enterprise.admin.verifier.tests.StaticTestvoidValidates the given value for the given entry.
-
Constructor Details
-
RepositoryNameValidator
Constructs new RepositoryNameValidator object.- Parameters:
name-
-
-
Method Details
-
validate
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
- Throws:
InvalidConfigException
-
checkValidXmlToken
Implementation copied from com.sun.enterprise.admin.verifier.tests.StaticTest- Throws:
InvalidConfigException
-
checkValidObjectNameToken
- Throws:
InvalidConfigException
-