BasicType is the base type from which all other types extend. It is also the new recommended type to be used for extending custom, project-specific types.
If true, the end user must provide a value to the data field managed by this type before submitting any request. All subclasses of this type support the isMandatory parameter.
Is the minimum length of characters for an input of this type to be valid.
maximumLength (int)
Is the maximum length of characters for an input of this type to be valid.
regExp (string)
Is a regular expression string that is used to match the input string for validation. For example, the regExp="\d{10}" regular expression will validate whether the input string is 10 numbers.
Is an enumerated value with one of the following types: byte, short, integer, bigInteger, long, double, float or bigDecimal. The default value is bigDecimal.
decimalPlaces (int, mandatory if numberType is not a scalar type)
Is the length of the decimal part of the number. For example, 4 represent there are 4 number after the decimal point.
pattern (String)
Is used to format the number. If no value is specified, the default behavior is to use the locale specific formatting. This pattern follow the syntax described in website http://www.unicode.org/reports/tr35/#Number_Format_Patterns, for example: #.00.
Literal characters in patterns are not supported.
If patten and decimalPlaces are both specified, pattern overrides the setting of decimalPlaces.
Is an enumerated value with one of the following types: byte, short, integer, long, double, float or bigDecimal. The default value is bigDecimal.
pattern (String)
Is used to format the number. If no value is specified, the default behavior is to use the locale specific formatting. This pattern follow the syntax described in website http://www.unicode.org/reports/tr35/#Number_Format_Patterns, for example: #.00.
Literal characters in patterns are not supported.
If patten and decimalPlaces are both specified, pattern overrides the setting of decimalPlaces.
decimalPlaces (int, mandatory if numberType is not a scalar type)
Is the length of the decimal part of the number. For example, 4 represent there are 4 number after the decimal point.
currency (String)
One currency setting to assign a type for the currency. For example: USD represents U.S. Dollars, CNY represents Chinese yuan
The Boolean type extends BasicType and is used to represent a boolean type data. If input data is a string type value, the content of this value should be either "true" or "false", or "yes" or "no". The converter automatically converts "true" and "yes" to a true boolean value and "false" and "no" to false boolean value.
The ByteArray type extends BasicType and represent byte array data. The ByteArray type is mainly used to exchange data with a front or back end system. For example, you can send a byte array type format image attachment to a back end system with Web services. A ByteArray instance is created from a file, or it can be passed from other components or systems. Because it is rare to create byte array data from a string value that has been entered by a user, conversion of a string value to byte array data is currently not supported.
Is the lower limit for length of valid byte array data.
maximumLength (int)
Is the upper limit for length of valid byte array data.
Note The format/unformat methods are not implemented by default. If customers need to transform the ByteArray format data, they can override these two methods to provide their own logic.
The Duration type extends BasicType and represents a javax.xml.datatype.Duration type data. A Duration instance can be created from two types of string formats: a long type millisecond value and a duration format string, for example P1DT9H55M31.233S. For more detailed information on the format, see the description of javax.xml.datatype.Duration.