Commit cd57e343 authored by Peter Waher's avatar Peter Waher

Adding enumeration control parameter type.

parent a262c4d9
......@@ -73,6 +73,8 @@ The value on the other hand, is encoded using the corresponding type of the para
| Date & Time Parameter | `dt` | Optional | `v` | `xs:dateTime` | Required | Date & Time parameter value. |
| Double Parameter | `db` | Optional | `v` | `xs:double` | Required | Double-precision floating point parameter value. |
| Duration Parameter | `dr` | Optional | `v` | `xs:duration` | Required | Duration parameter value. |
| Enumeration Parameter | `e` | Optional | `v` | `xs:string` | Required | String parameter value. |
| | | | `t` | `xs:string` | Required | Type name of enumeration. |
| 32-bit Integer Parameter | `i` | Optional | `v` | `xs:int` | Required | 32-bit Integer parameter value. |
| 64-bit Integer Parameter | `l` | Optional | `v` | `xs:long` | Required | 64-bit Integer parameter value. |
| String Parameter | `s` | Optional | `v` | `xs:string` | Required | String parameter value. |
......
Diagrams/ControlParameterTypes.png

35 KB | W: | H:

Diagrams/ControlParameterTypes.png

39.5 KB | W: | H:

Diagrams/ControlParameterTypes.png
Diagrams/ControlParameterTypes.png
Diagrams/ControlParameterTypes.png
Diagrams/ControlParameterTypes.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
......@@ -9,6 +9,7 @@ Parameter <|-- Date
Parameter <|-- DateTime
Parameter <|-- Double
Parameter <|-- Duration
Parameter <|-- Enum
Parameter <|-- Int32
Parameter <|-- Int64
Parameter <|-- String
......@@ -34,6 +35,9 @@ Double : Value : xs:double
Duration : Value : xs:duration
Enum : Value : xs:string
Enum : Type : xs:string
Int32 : Value : xs:int
Int64 : Value : xs:long
......
......@@ -69,7 +69,7 @@ purposes.
<xs:element name='set'>
<xs:annotation>
<xs:documentation>Sets control parameters sin the destination.</xs:documentation>
<xs:documentation>Sets control parameters in the destination.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs='0'>
......@@ -108,7 +108,12 @@ purposes.
<xs:documentation>Sets a duration control parameter.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref='i'>
<xs:element ref='e'>
<xs:annotation>
<xs:documentation>Sets an enumeration control parameter.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref='i'>
<xs:annotation>
<xs:documentation>Sets a 32-bit signed integer control parameter.</xs:documentation>
</xs:annotation>
......@@ -273,7 +278,7 @@ purposes.
<xs:element name='b'>
<xs:annotation>
<xs:documentation>Defines a boolean control parameter.</xs:documentation>
<xs:documentation>Sets a boolean control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -290,7 +295,7 @@ purposes.
<xs:element name='cl'>
<xs:annotation>
<xs:documentation>Defines a color control parameter.</xs:documentation>
<xs:documentation>Sets a color control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -307,7 +312,7 @@ purposes.
<xs:element name='d'>
<xs:annotation>
<xs:documentation>Defines a date control parameter.</xs:documentation>
<xs:documentation>Sets a date control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -324,7 +329,7 @@ purposes.
<xs:element name='dt'>
<xs:annotation>
<xs:documentation>Defines a date &amp; time control parameter.</xs:documentation>
<xs:documentation>Sets a date &amp; time control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -341,7 +346,7 @@ purposes.
<xs:element name='db'>
<xs:annotation>
<xs:documentation>Defines a double-precision floating-point control parameter.</xs:documentation>
<xs:documentation>Sets a double-precision floating-point control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -358,7 +363,7 @@ purposes.
<xs:element name='dr'>
<xs:annotation>
<xs:documentation>Defines a duration control parameter.</xs:documentation>
<xs:documentation>Sets a duration control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -373,9 +378,31 @@ purposes.
</xs:complexType>
</xs:element>
<xs:element name='i'>
<xs:element name='e'>
<xs:annotation>
<xs:documentation>Sets an enumeration control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base='Parameter'>
<xs:attribute name='v' type='xs:string' use='required'>
<xs:annotation>
<xs:documentation>String value to be set.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name='t' type='xs:string' use='required'>
<xs:annotation>
<xs:documentation>Type name of enumerated value.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name='i'>
<xs:annotation>
<xs:documentation>Defines a 32-bit signed integer control parameter.</xs:documentation>
<xs:documentation>Sets a 32-bit signed integer control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -392,7 +419,7 @@ purposes.
<xs:element name='l'>
<xs:annotation>
<xs:documentation>Defines a 64-bit signed integer control parameter.</xs:documentation>
<xs:documentation>Sets a 64-bit signed integer control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -409,7 +436,7 @@ purposes.
<xs:element name='s'>
<xs:annotation>
<xs:documentation>Defines a string control parameter.</xs:documentation>
<xs:documentation>Sets a string control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......@@ -426,7 +453,7 @@ purposes.
<xs:element name='t'>
<xs:annotation>
<xs:documentation>Defines a time control parameter.</xs:documentation>
<xs:documentation>Sets a time control parameter.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment