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

public class MaapiSchemas.CSTypeMethods extends Object
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 Details

    • CSTypeMethods

      public CSTypeMethods()
  • Method Details

    • stringToValue

      public ConfValue stringToValue(MaapiSchemas.CSType type, String str) throws MaapiException
      parse value located in str and convert to ConfValue, the value is validated.
      Parameters:
      type - - type for the converted value
      str - - string representation of the value
      Returns:
      ConfValue for the corresponding type
      Throws:
      MaapiException
    • valueToString

      public String valueToString(MaapiSchemas.CSType type, ConfValue val)
      convert to string representation for the corresponding Confvalue
      Parameters:
      type - - type for the converted value
      val - - ConfValue
      Returns:
      String representation of the value
    • validate

      public boolean validate(MaapiSchemas.CSType type, ConfValue val) throws MaapiException
      Validates ConfValue of with rules from CSType
      Parameters:
      type -
      val -
      Returns:
      boolean true if valid
      Throws:
      MaapiException