Logical properties for value constraints for simple type string types

The simple type value constraint properties described here apply to:

Length constraints

Property Type Meaning
Length Integer The length property is used to specify the exact length of the simple type in bytes or characters.

The value must be greater than 0 and less than 2147483648.

Min Integer The Min property is used to specify the minimum length of the simple type in bytes or characters.

The value must be greater than 0 and less than 2147483648.

Max Integer The Max property is used to specify the maximum length of the simple type in bytes or characters.

The value must be greater than 0 and less than 2147483648.

Property Type Meaning
White Space Enumerated type The White Space controls the processing of white space characters received for this type.
The value of White Space must be one of;
  • preserve. If you set the property to preserve, all white space characters including carriage return, line feed and tab are preserved.
  • replace. If you set the property to replace, all carriage return, line feed and tab characters are replaced with a space character.
  • collapse. If you set the property to collapse, all carriage return, line feed and tab characters are replaced with a space character. Any adjacent white space characters are then collapsed to a single space character and any leading or trailing spaces are stripped from the data.

Enumerations

Property Type Meaning
Enumerations String Enumerations constrain the values to the list that is specified in this property. For example, you could create a simple type called RainbowColors. You would then add Red, Orange, Yellow, Green, Blue, Indigo, and Violet to the enumerations list.

You need to ensure that you have all variations of the data that you are likely to receive in the message defined in the list. For example, Yellow, yellow, yel, y could be possible variations of a single color.

Select Add to add a default enumeration. Overtype the default with the data you require.

If you need to change an entry, select the entry, then click on the entry a second time (as distinct from double-click). The selected entry can then be updated.

Patterns

Property Type Meaning
Patterns String Patterns are a regular expression or a series of regular expressions used to constrain the data within the simple type. For further information on patterns and their syntax see Using regular expressions to parse data elements.

Select Add to add a default pattern. Overtype the default with the data you require.

If you need to change an entry, select the entry, then click on the entry a second time (as distinct from double-click). The selected entry can then be updated.

Related concepts
Message modeling
The message model
Related tasks
Developing message models
Working with message model objects
Related reference
Message model reference information
Message model object properties
Logical properties for message model objects
Custom Wire Format physical properties for message model objects
XML wire format physical properties for message model objects
TDS format physical properties for message model objects
Documentation properties for all message set objects
Message model object properties by object
Additional MRM domain information