Eclipse.org Eclipse.org choicesegment Device Kit

XML Element 

<choicesegment> element

Device Kit Attributes Elements XML Reference
New  The segment tag specifies a segment within a message. By using the segment tag, the value of the segment can be extracted from the message received from the hardware device. The segment tag is also used to define how to stored a segment into a message to be sent to the hardware device. This value in the message can be translated into/from the application value by using the translate tags. Valid subtags of segment include those that specify where to place the segment within the message and a series of transforms that manipulate the segment''s data. You can set the units of the segment with the units tag.

Release: New 1.1.0

Examples: choicesegment examples


NameTypeDescriptionUse
Element <choicesegment> attributes
type "ascii" "asciiz" "bit" "boolean" "boolean[]" "byte" "byte[]" "bytes" "double" "double[]" "float" "float[]" "hexascii" "hexstring" "int" "int[]" "long" "long[]" "nascii" "nstring" "numericstring" "short" "string" "ubyte" "ubytes" "uint" "ulong" "ushort" Specifies the data type.optional

NameDescriptionUse
Element <choicesegment> elements
<description>Description of the segment.0 to unbounded
<deprecated>Specifies that the contents of this element should be marked as deprecated.0 to 1
<specreference>Specification reference for this segment.0 to unbounded
<key>Specifies the segment key.0 to 1
<field>Specifies the field segment name.0 to 1
<occursminimum>New Specifies the minimum number of times the seqment can occur. 0 to 1
<occursmaximum>New Specifies the maximum number of times the seqment can occur. 0 to 1

Sibling NameSibling Description
Element <choicesegment> element siblings
<dkml>Specifies the root element of a Device Kit &lt;b&gt;D&lt;/b&gt;evice &lt;b&gt;K&lt;/b&gt;it &lt;b&gt;L&lt;/b&gt;anguage (dkml) document.
<filter>
<message>
<parameter>
<block>New Defines a block.
<constantblock>New Defines a constant block.
<reserveblock>New Defines a reserve block.
<versionblock>New Defines a version block.
<idblock>New Defines a id block.
<identifierblock>New Defines a identifierblock block.
<typeblock>New Defines a type block.
<countblock>New Defines a count block.
<lengthblock>New Defines a length in bits block. The contents of the block is the length in bits.
<sizeblock>New Defines a length in bytes block. The contents of the block is the length in bytes(each byte is 8 bits).
<segmentlengthblock>New Defines a segment length in bits block. The contents of the block is the length in bits.
<segmentsizeblock>New Defines a segment length in bytes block. The contents of the block is the length in bytes(each byte is 8 bits).
<messagelengthblock>New Defines a message length in bits block. The contents of the block is the length in bits.
<messagesizeblock>New Defines a message length in bytes block. The contents of the block is the length in bytes(each byte is 8 bits).
<bytesparameter>New Defines a bytes parameter.
<bitsparameter>New Defines a bits parameter.
<multiparameter>New Defines a multiple parameter.
<variablelengthparameter>New Defines a variable length parameter.
<listparameter>New Defines a list parameter.
<mapparameter>New Defines a map parameter.
<arrayparameter>New Defines a array parameter.
<utf8stringparameter>New Defines a UTF-8 string parameter.
<stringparameter>New Defines a string parameter.
<booleanparameter>New Defines a binary boolean parameter. Normally, a boolean parameter length should not be longer than 1 bit.
<numberparameter>
<integerparameter>New Defines a binary integer parameter. An integer parameter length should not be longer than 32 bits (4 bytes).
<unsignedintegerparameter>New Defines a binary unsigned integer parameter. An unsigned integer parameter length should not be longer than 32 bits (4 bytes).
<longparameter>New Defines a binary long parameter. An long parameter length should not be longer than 64 bits (8 bytes).
<unsignedlongparameter>New Defines a binary unsigned long parameter. An unsigned long parameter length should not be longer than 64 bits (8 bytes).
<shortparameter>New Defines a binary short parameter. An short parameter length should not be longer than 16 bits (2 bytes).
<unsignedshortparameter>New Defines a binary unsigned short parameter. An unsigned short parameter length should not be longer than 16 bits (2 bytes).
<byteparameter>New Defines a binary byte parameter. An byte parameter length should not be longer than 8 bits (1 byte).
<unsignedbyteparameter>New Defines a binary unsigned byte parameter. An unsigned byte parameter length should not be longer than 8 bits (1 byte).
<floatparameter>New Defines a binary IEEE 754 floating-point single 32 bit parameter. The float parameter length should be 32 bits (4 bytes).
<doubleparameter>New Defines a binary IEEE 754 floating-point double 64 bit parameter. The double parameter length should be 64 bits (8 bytes).
<segment>
<parametersegment>
<singleparametersegment>
<protocol>
<transport>
<transporttest>
<receiver>New Defines a receiver transport.
<value>

Element NameElement Description
Element <choicesegment> element tree
<dkml>Specifies the root element of a Device Kit &lt;b&gt;D&lt;/b&gt;evice &lt;b&gt;K&lt;/b&gt;it &lt;b&gt;L&lt;/b&gt;anguage (dkml) document.

Copyright (c) 2008 IBM. See license in Legal section. 2008-09-10 Device Kit XML Reference 1.1.0