postPad is an OCL operator intended for use in MDriven OCL expressions; this page will help you apply it once its syntax and behavior have been confirmed.
Status
The available documentation does not yet define the postPad syntax, its arguments, or its result. Do not rely on an assumed padding direction, padding character, or handling of values that already meet a requested length.
Information required for use
Before you use postPad in an OCL expression, confirm the following details:
- The complete operator syntax.
- The type of value on which the operator can be called.
- The required and optional arguments.
- Whether the operator adds characters before or after the original value.
- The default padding character, if any.
- The result when the original value is longer than the requested length.
- The result for an empty value or a null value.
Example
A verified example requires the complete postPad expression and its expected result. The previously documented scenario refers to a Car class with a Name attribute, but it does not include the expression or returned value.
When the syntax is confirmed, document the example in this form:
Car.Name.<postPad syntax and arguments>
State the input value and the exact returned value, including visible padding characters where applicable.
Related operators
Use pad for the related padding operator. Use length when you need the number of characters in a string. For general guidance on locating and using OCL operators, see Documentation:OCL General Operators.
