Page History
Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Div | ||
---|---|---|
| ||
|
Syntax |
| ||||||
---|---|---|---|---|---|---|---|
Semantics | The operation takes any object (
|
...
|
...
|
...
| |||||||||||||
Substitutables | anObject | Target object can be any complex object. However, simple types and arrays are not supported, since they do not map naturally to a well formed XML document. | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
|
...
|
...
Examples |
|
---|
Multiexcerpt include | ||||||
---|---|---|---|---|---|---|
|
The following action script serializes an object of type Address provided, that you have defined an input object node named myAddress of type Address in the activity diagram.
Code Block |
---|
set xmlBlob = myAddress.classToXML(); |
The sample XML document below illustrates the mapping executed by classToXML().
The object myAddress of type Address (see class diagram) is mapped to an XML document as depicted in the following XML document:
Code Block | ||
---|---|---|
| ||
<myAddress id="myAddressID">
<street>Lautengartenstr. 12</street>
<city>Basel</city>
</myAddress> |
Note, that the XML element myAddress is of type Address. This type has the UML attribute id, which corresponds to the XML attribute id. Additionally, the XML elements street and city are mapped to the association ends city respectively street. Both are having the type String.
Panel | ||
---|---|---|
| ||