primitive_value
structure contains value of the constant element.
{
"boolean_value": true, "double_value": 10.23, "long_value": 10, "string_value": "string", "type": "BOOLEAN" }
<?xml version="1.0" ?>
<ns0:PrimitiveValue xmlns:ns0="http://vmware.com/vapi/metadata/metamodel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <long_value>10</long_value> <double_value>10.23</double_value> <string_value>string</string_value> <type>BOOLEAN</type> <boolean_value>true</boolean_value> </ns0:PrimitiveValue> |
Name | Type | Required | Description |
---|---|---|---|
type* |
com.vmware.vapi.metadata.metamodel.primitive_value.type | Yes | Type of the constant value. The type enumerated type defines the valid types for values in constant elements.Values one of BOOLEAN: Indicates the value is a boolean (true or false). DOUBLE: Indicates the value is a double (64 bit floating number). LONG: Indicates the value is a long (64 bit signed integer). STRING: Indicates the value is a string (a variable length sequence of characters). The encoding is UTF8. |
boolean_value | boolean | No. This field is optional and it is only relevant when the value of type is BOOLEAN. |
Boolean value of the constant. Required if type has value BOOLEAN. |
double_value | double | No. This field is optional and it is only relevant when the value of type is DOUBLE. |
Double value of the constant. Required if type has value DOUBLE. |
long_value | long | No. This field is optional and it is only relevant when the value of type is LONG. |
Long value of the constant. Required if type has value LONG. |
string_value | string | No. This field is optional and it is only relevant when the value of type is STRING. |
String value of the constant. Required if type has value STRING. |
Copyright © 2014. All Rights Reserved.