<element>
This element represents an element of a <type>.
parents | |
---|---|
children | none |
Attributes
Attribute | Data Type | Usage | Default Value | Description |
---|---|---|---|---|
name | xsd:NCName | required | none | The name of the element. It must be unique within the parent <type>. |
offset | xsd:nonNegativeInteger | required | none | The position of this element relative to the start of the containing <type>, in bytes. |
size | xsd:positiveInteger | required | none | The storage size for the element, in bytes. |
type | xsd:NCName | required | none | The data type of the element. Must be one of the build-in types or the name of a <type> element. |
dependsOn | xsd:NCName | optional | none | If the element represents an array, the name of the element (contained within the same <type> as this element) that indicates the actual number of array occurrences at runtime. |
isSet | xsd:NCName | optional | none | References an integer element that indicates whether of not the source element should be present in the request, or was present in the response. See Working with Optional Fields |
minOccurs | xsd:positiveInteger | optional | 1 | If the element represents an array, the minimum number of occurrences. If the element represents a primitive type, indicates that the element is optional in the message. |
maxOccurs | xsd:positiveInteger | optional | 1 | If the element represents an array, the maximum number of occurrences. |
stringPadding | xsd:token | optional | zeros | Controls the way elements of type string are treated. The default value is inherited from the containing <type> or the <server> whose request or reply type contains this element. Valid values are "zeros" and "spaces". |
private | xsd:integer | optional | 0 | Indicates whether or not the element will appear in the JSON message. Valid values are "0" or "1". A value of "1" will cause the element to be omitted from the JSON. Although the default value of the attribute is "0", this default can be altered by the private attribute of this element's parent <type> element. |
Remarks
Refer to the section Advanced Topics for more information on these attributes.
Example
<type name="GetCpuList" size="18" ddlName="GET-CPU-LIST" ddlModified="2014-09-09T08:55" ddlOrigin="MXxJRHxHRVQtQ1BVLUxJU1R8XEFDVDUuJERFTU8uTlNF">
<element name="requestCode" type="unsignedShort" offset="0" size="2" value="6"/>
<element name="node" type="string" offset="2" size="16"/>
</type>
<type name="GetCpuListResult" size="340" ddlName="GET-CPU-LIST-RESULT" ddlModified="2014-09-09T08:55" ddlOrigin="MXxJRHxHRVQtQ1BVLUxJU1QtUkVTVUxUfFxBQ1Q1LiRERU1PLk5TRQ==">
<element name="resultCode" type="unsignedShort" offset="0" size="2"/>
<element name="node" type="string" offset="2" size="16"/>
<element name="cpuList" type="CpuList" offset="18" size="322"/>
</type>