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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassertNamespaceCharPatternIsValid(String possibleNamespaceName) voidValidate the prefix of a cps property.voidvoidassertPropertyNameCharPatternIsValid(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
-