Difference between revisions of "Type:org/oomodels/WIML/1.0"
From OOModels
Jump to navigationJump to search
AndreasLeue (talk | contribs) |
AndreasLeue (talk | contribs) (→Syntax) |
||
Line 12: | Line 12: | ||
<SubPages/> | <SubPages/> | ||
==Syntax== | == Class Syntax == | ||
<wiml> | <wiml> | ||
Line 122: | Line 122: | ||
- Property621Name = Property621Value | - Property621Name = Property621Value | ||
- Property622Name = Property622Value | - Property622Name = Property622Value | ||
</wiml> | |||
== State Machine Syntax == | |||
<wiml> | |||
# Transaction01 InteractionClass | |||
~ state1,state2,state3 | |||
An example transaction | |||
** Attribute1 String | |||
+ XMLogic | |||
- DefaultValue = "value1-1"; | |||
+ XMPresentation | |||
- VisibilityStates = [state1,state2] | |||
+ XMVUI | |||
- Mode = "transactionreadwrite" | |||
** Attribute2 String | |||
+ XMLogic | |||
- DefaultValue = "value2-1"; | |||
+ XMPresentation | |||
- VisibilityStates = [state2,state3] | |||
+ XMVUI | |||
- Mode = "transactionreadwrite" | |||
!! next1 void() | |||
~~ state1 | |||
+ XMPresentation | |||
- Name = next | |||
+ XMLogicImplementation | |||
- OperationBody = ~ attribute1="value1-2";\nattribute2="value2-2";\n==>> state2; | |||
!! next2 void() | |||
~~ state2 | |||
+ XMPresentation | |||
- Name = next | |||
+ XMLogicImplementation | |||
- OperationBody = ~ attribute1="value1-3";\nattribute1="value2-3";\n==>> state3; | |||
!! back2 void() | |||
~~ state2 | |||
+ XMPresentation | |||
- Name = back | |||
+ XMLogicImplementation | |||
- OperationBody = ~ attribute1="value1-1";\nattribute2="value2-1";\n==>> state1; | |||
!! back3 void() | |||
~~ state3 | |||
+ XMPresentation | |||
- Name = back | |||
+ XMLogicImplementation | |||
- OperationBody = ~ attribute1="value1-2";\nattribute2="value2-2";\n==>> state2; | |||
</wiml> | </wiml> | ||
{{Browse}} | {{Browse}} |
Revision as of 14:14, 16 March 2009
Classification | |
---|---|
MIME Type | text/plain |
FileExtension | wiml |
Domain | Domain:it/development/modelling |
Category | Type:org/oomodels/wiki/Version |
Namespace (more) | |
OOModels main namespace | |
create new pages |
Description[edit]
This is version 1.0 of Type:org/oomodels/WIML
Class Syntax[edit]
<wiml> * ClassName Stereotype <= Arg1 <= Arg2 <- Arg3 <- Arg4 < Arg5 < Arg6 > BaseClass Single line class description + Extension1Name - Property11Name = Property11Value - Property12Name = Property12Value + Extension2Name - Property21Name = Property21Value - Property22Name = Property22Value ** Attribute1Name Type Stereotype Single line attribute description + Extension11Name - Property111Name = Property111Value - Property112Name = Property112Value + Extension12Name - Property121Name = Property121Value - Property122Name = Property122Value ** Attribute2Name Type Stereotype Single line attribute description + Extension21Name - Property211Name = Property211Value - Property212Name = Property212Value + Extension22Name - Property221Name = Property221Value - Property222Name = Property222Value ** Association3Name Type(1:+) Stereotype Single line association description ** Association4Name Type(0..1:5) Stereotype Single line association description !! Operation5Name ReturnType(Argument51Name:Argument51Type,Argument52Name:Argument52Type) Stereotype Single line operation description + Extension51Name - Property511Name = Property511Value - Property512Name = Property512Value + Extension52Name - Property521Name = Property521Value - Property522Name = Property522Value !! Operation6Name ReturnType(Argument61Name:Argument61Type,Argument62Name:Argument62Type) Stereotype Single line operation description + Extension61Name - Property611Name = Property611Value - Property612Name = Property612Value + Extension62Name - Property621Name = Property621Value - Property622Name = Property622Value </wiml>
The above code (except the "..." parts) is rendered as follows. Please note: all types (Type, Stereotype, Base) are rendered automatically as links. If the typename contains no "/", it is assumed it is a primitive model type defined in Artefact:Model/org/oomodels/primitives. If it does contain a "/", it is linked to the respective subpage in Artefact:Model.
| |||||||||||||
ClassName≦Arg1≧≦Arg2≧≤Arg3≥≤Arg4≥<Arg5><Arg6> «Stereotype» | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
...
|
|||||||||||||
Attribute1Name | Type | «Stereotype» | ...
| ||||||||||
Single line attribute description | |||||||||||||
Attribute2Name | Type | «Stereotype» | ...
| ||||||||||
Single line attribute description | |||||||||||||
Association3Name | ──1:+──► Type | «Stereotype» | |||||||||||
Single line association description | |||||||||||||
Association4Name | ──0..1:5──► Type | «Stereotype» | |||||||||||
Single line association description | |||||||||||||
Operation5Name | ReturnType (Argument51Name: Argument51Type, Argument52Name: Argument52Type) | «Stereotype» |
...
| ||||||||||
Single line operation description | |||||||||||||
Operation6Name | ReturnType (Argument61Name: Argument61Type, Argument62Name: Argument62Type) | «Stereotype» |
...
| ||||||||||
Single line operation description |
State Machine Syntax[edit]
Transaction01 «InteractionClass» | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Attribute1 | String | «» | ...
| |||||||||
Attribute2 | String | «» | ...
| |||||||||
state1──► next1 | void () | «» |
...
| |||||||||
state2──► next2 | void () | «» |
...
| |||||||||
state2──► back2 | void () | «» |
...
| |||||||||
state3──► back3 | void () | «» |
...
|