Class ResourceNameValidator
java.lang.Object
dev.galasa.framework.api.common.resources.ResourceNameValidator
A class which can validate whether a resources use valid characters or not.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assertNamespaceCharPatternIsValid
(String possibleNamespaceName) void
Validate the prefix of a cps property.void
void
assertPropertyNameCharPatternIsValid
(String propertyName)
-
Constructor Details
-
ResourceNameValidator
public ResourceNameValidator()
-
-
Method Details
-
assertNamespaceCharPatternIsValid
public void assertNamespaceCharPatternIsValid(String possibleNamespaceName) throws InternalServletException - Throws:
InternalServletException
-
assertPropertyCharPatternPrefixIsValid
Validate the prefix of a cps property.- Parameters:
prefix
- The prefix to validate.- Throws:
FrameworkException
- If the property prefix is invalid.InternalServletException
-
assertPropertyCharPatternSuffixIsValid
- Throws:
InternalServletException
-
assertPropertyNameCharPatternIsValid
public void assertPropertyNameCharPatternIsValid(String propertyName) throws InternalServletException - Throws:
InternalServletException
-