Package com.tailf.maapi
Class MaapiSchemas.CSTypeMethods
Object
com.tailf.maapi.MaapiSchemas.CSTypeMethods
- Direct Known Subclasses:
MaapiSchemas.BitsTypeMethodsImpl
,MaapiSchemas.Decimal64TypeMethodsImpl
,MaapiSchemas.DisplayHintTypeMethodsImpl
,MaapiSchemas.EnumTypeMethodsImpl
,MaapiSchemas.IdentityTypeMethodsImpl
,MaapiSchemas.ListRestrictionTypeMethodsImpl
,MaapiSchemas.ListTypeMethodsImpl
,MaapiSchemas.RetrictedNumberTypeMethodsImpl
,MaapiSchemas.StringTypeMethodsImpl
,MaapiSchemas.UnionTypeMethodsImpl
- Enclosing class:
- MaapiSchemas
Class which contains type specific conversion and validation
methods Has
to be extended for aggregated and user types.
When extended normally only the validation method has to be overridden
-
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
-
CSTypeMethods
public CSTypeMethods()
-
-
Method Details
-
stringToValue
parse value located in str and convert to ConfValue, the value is validated.- Parameters:
type
- - type for the converted valuestr
- - string representation of the value- Returns:
- ConfValue for the corresponding type
- Throws:
MaapiException
-
valueToString
convert to string representation for the corresponding Confvalue- Parameters:
type
- - type for the converted valueval
- - ConfValue- Returns:
- String representation of the value
-
validate
Validates ConfValue of with rules from CSType- Parameters:
type
-val
-- Returns:
- boolean true if valid
- Throws:
MaapiException
-