Class ValidationUtils
- java.lang.Object
-
- com.microstrategy.utils.validator.ValidationUtils
-
public class ValidationUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ValidationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isValidBoolean(java.lang.String value)
Validates if a string is a valid boolean.static boolean
isValidFloat(java.lang.String value)
Validates if a string is a valid float.static boolean
isValidGUID(java.lang.String value)
Validates if a string is a valid GUID.static boolean
isValidHiddenSections(java.lang.String value)
Validates if a string has correct hidden sectionsstatic boolean
isValidInt(java.lang.String value)
Validates if a string is a valid integer.static boolean
isValidSimpleString(java.lang.String value)
Validates if a string is a simple one, which doesn't contain any valid XML tags.static boolean
isValidStyleName(StyleCatalog styleCatalog, java.lang.String styleName)
Validates if the string passed is a valid style name in the styleCatalog.xmlstatic boolean
isValidURL(java.lang.String value)
Validates if a string matches valid URL/URI scheme.static boolean
isValidXML(java.lang.String value)
Validates if a string is a valid XML string.
-
-
-
Method Detail
-
isValidBoolean
public static boolean isValidBoolean(java.lang.String value)
Validates if a string is a valid boolean.- Parameters:
value
-- Returns:
-
isValidGUID
public static boolean isValidGUID(java.lang.String value)
Validates if a string is a valid GUID.- Parameters:
value
-- Returns:
-
isValidInt
public static boolean isValidInt(java.lang.String value)
Validates if a string is a valid integer.- Parameters:
value
-- Returns:
-
isValidFloat
public static boolean isValidFloat(java.lang.String value)
Validates if a string is a valid float.- Parameters:
value
-- Returns:
-
isValidSimpleString
public static boolean isValidSimpleString(java.lang.String value)
Validates if a string is a simple one, which doesn't contain any valid XML tags.- Parameters:
value
-- Returns:
-
isValidURL
public static boolean isValidURL(java.lang.String value)
Validates if a string matches valid URL/URI scheme.- Parameters:
value
-- Returns:
-
isValidHiddenSections
public static boolean isValidHiddenSections(java.lang.String value)
Validates if a string has correct hidden sections- Parameters:
value
-- Returns:
-
isValidXML
public static boolean isValidXML(java.lang.String value)
Validates if a string is a valid XML string.- Parameters:
value
-- Returns:
-
isValidStyleName
public static boolean isValidStyleName(StyleCatalog styleCatalog, java.lang.String styleName)
Validates if the string passed is a valid style name in the styleCatalog.xml- Parameters:
styleCatalog
-styleName
-- Returns:
- whether the string passed is a valid style name in the styleCatalog.xml
-
-