Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The message package is used to generate an XML Schema for request and response messages. Below is an example of the TestBasicMessage. This message includes the extensions described previously even though they do not appear in the diagram.
A Message is modelled in UML using the class object with a stereotype <<message>>. In this example the message is a limited collection of AIXM features with extensions. This is modelled by relating the collection of features; <<collectionMemberChoice>> to the message through the relationship "hasMember".

XML Schema Mapping

Classes with the stereotype of <<message>> following the AIXM feature collection response generates four related elements for that class.

  • <classname>MessageMemberPropertyGroup
  • <classname>MessagePropertyGroup
  • <classname>MessageType
  • <classname>Message

The <classname>MessagememberPropertyGroup is generated as a XMLSchema <complexType>, which extends gml:AbstractFeatureMemberType, and includes a <choice> between the all the features it is pointing to.
Image Added
The <classname>MessagePropertyGroup is generated as a XMLSchema <group>, which contains the properties (elements and relationships) of the Message.
Image Added 
The <classname>MessageType element is generated as a XMLSchema <complexType.> and extends base type aixm:AbstractAIXMMessageType.
Image Added 
The <classname>Message element is generated as a XMLSchema <element>. The associations are treated as objects. They are included in the schema. Image Added