You can now configure the simple type to your exact requirements.
If the simple type
is a restriction:
- You can change the base type using the editor Properties view.
- You can set the value constraints associated with the simple type. See Setting value constraints.
- You can replace the base type with a new local simple type. In the Outline
view right-click on the simple type and click one of:
- Add Simple Type Restriction. This replaces the
base type with a new simple type restriction, with a base type of string.
You can configure the restriction as described in 'If the simple type is a
restriction'. The result is that the original simple type becomes a restriction
of a restriction.
- Add Simple Type List. This replaces the base type
with a new simple type list, with an item type of string. You can configure
the list as described in 'If the simple type is a list'. The result is that
the original simple type becomes a restriction of a list. Note that this appears
as a list in the editor, because a restriction of a list is itself a list,
but you can also set certain value constraints.
If the simple type is a list:
- You can change the item type using the editor Properties view.
- You can replace the item type with a new local simple type. In the Outline
view right-click on the simple type and click one of:
- Add Simple Type Restriction. This replaces the
item type with a new simple type restriction, with a base type of string.
You can configure the restriction as described in 'If the simple type is a
restriction'. The result is that the original simple type becomes a list of
a restriction.
- Add Simple Type Union. This replaces the item type
with a new simple type union, with a single member type of string. You can
configure the union as described in 'If the simple type is a union'. The result
is that the original simple type becomes a list of a union.
If the simple type is a union:
- If the member type of string is not required, in the Outline view right-click
on the string and click Delete.
- You can add further members to the union. In the Outline view right-click
on the simple type and click one of:
- Add Union Member Type. This adds a union member
that is an existing simple type. Use the type selection dialog to select the
simple type required.
- Add Local Member Type Restriction. This adds a
union member that is a new simple type restriction, with a base type of string.
You can configure the restriction as described in 'If the simple type is a
restriction' above.
- Add Local Member Type List. This adds a union member
that is a new simple type list, with an item type of string. You can configure
the list as described in 'If the simple type is a list' above.
- Add Local Member Type Union. This adds a union
member that is a new simple type union, with a single member type of string.
You can configure the new union as described in 'If the simple type is a union'.
- New members are added to the end of the union. To change the order of
a member, in the Outline view select the member and drag it to the desired
position within the union. Note that all union members that are existing simple
types must occur ahead of all members that are local restrictions, lists and
unions, so reordering is subject to this rule.
For further information on configuring
message model objects see Configuring message model objects.