WebSphere Message Brokers
File: ad02690_
Writer: Terry Cowling

Task topic

This build: July 31, 2007 21:22:04

Adding a simple type

Before you start:

You must have completed the following tasks:

To add a simple type to your message model:

  1. Switch to the Broker Application Development perspective.
  2. Ensure that the Outline view is visible in the Broker Application Development perspective of the workbench. If the Outline view is not visible, from the workbench menu, click Window > Show View> Outline.
  3. In the Outline view, right-click Types then click either Add Simple Type Restriction, Add Simple Type List, or Add Simple Type Union on the pop-up menu.
    • For a restriction, a simple type of base type string is added, and assigned a default name.
    • For a list, a simple type of item type string is added, and assigned a default name.
    • For a union, a simple type with a single member type of string is added, and assigned a default name.
  4. Either type a new name for the simple type or press Enter to accept the default.

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.

Related concepts
Message model objects
Message model objects: types
Message model objects: simple types
Related tasks
Configuring message model objects
Deleting objects
Related reference
Message model object properties
Simple type logical properties
Simple type CWF properties
Simple type XML properties
Simple type TDS properties
Documentation properties for all message set objects
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:22:04

ad02690_ This topic's URL is: