Package com.tailf.maapi
Class MaapiSchemas.EnumTypeMethodsImpl
Object
com.tailf.maapi.MaapiSchemas.CSTypeMethods
com.tailf.maapi.MaapiSchemas.EnumTypeMethodsImpl
- Enclosing class:
- MaapiSchemas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstringToValue
(MaapiSchemas.CSType type, String str) parse value located in str and convert to ConfValue, the value is validated.boolean
validate
(MaapiSchemas.CSType type, ConfValue val) Validates ConfValue of with rules from CSTypevalueToString
(MaapiSchemas.CSType type, ConfValue val) convert to string representation for the corresponding Confvalue
-
Constructor Details
-
EnumTypeMethodsImpl
public EnumTypeMethodsImpl()
-
-
Method Details
-
stringToValue
Description copied from class:MaapiSchemas.CSTypeMethods
parse value located in str and convert to ConfValue, the value is validated.- Overrides:
stringToValue
in classMaapiSchemas.CSTypeMethods
- Parameters:
type
- - type for the converted valuestr
- - string representation of the value- Returns:
- ConfValue for the corresponding type
- Throws:
MaapiException
-
valueToString
Description copied from class:MaapiSchemas.CSTypeMethods
convert to string representation for the corresponding Confvalue- Overrides:
valueToString
in classMaapiSchemas.CSTypeMethods
- Parameters:
type
- - type for the converted valueval
- - ConfValue- Returns:
- String representation of the value
-
validate
Description copied from class:MaapiSchemas.CSTypeMethods
Validates ConfValue of with rules from CSType- Overrides:
validate
in classMaapiSchemas.CSTypeMethods
- Returns:
- boolean true if valid
- Throws:
MaapiException
-