Package uk.gov.gchq.gaffer.commonutil
Class PropertiesUtil
- java.lang.Object
-
- uk.gov.gchq.gaffer.commonutil.PropertiesUtil
-
public final class PropertiesUtil extends Object
Utility methods for Schema Properties.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isValidName(String property)
Checks the input property String against the allowed property pattern.static String
stripInvalidCharacters(String property)
static void
validateName(String property)
Checks the input property String against the allowed property pattern.
-
-
-
Method Detail
-
validateName
public static void validateName(String property)
Checks the input property String against the allowed property pattern.- Parameters:
property
- String to validate.- Throws:
IllegalArgumentException
- if property String is invalid.
-
isValidName
public static boolean isValidName(String property)
Checks the input property String against the allowed property pattern.- Parameters:
property
- String to validate.- Returns:
- boolean if name is valid
-
-