constant_value
structure contains the metamodel information of the constant element.
{
"category": "PRIMITIVE", "list_value": [ { "boolean_value": true, "double_value": 10.23, "long_value": 10, "string_value": "string", "type": "BOOLEAN" }, { "boolean_value": true, "double_value": 10.23, "long_value": 10, "string_value": "string", "type": "BOOLEAN" } ], "primitive_value": { "boolean_value": true, "double_value": 10.23, "long_value": 10, "string_value": "string", "type": "BOOLEAN" } }
<?xml version="1.0" ?>
<ns0:ConstantValue xmlns:ns0="http://vmware.com/vapi/metadata/metamodel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <category>PRIMITIVE</category> <primitive_value> <long_value>10</long_value> <double_value>10.23</double_value> <string_value>string</string_value> <type>BOOLEAN</type> <boolean_value>true</boolean_value> </primitive_value> <list_value-array> <array-item> <long_value>10</long_value> <double_value>10.23</double_value> <string_value>string</string_value> <type>BOOLEAN</type> <boolean_value>true</boolean_value> </array-item> <array-item> <long_value>10</long_value> <double_value>10.23</double_value> <string_value>string</string_value> <type>BOOLEAN</type> <boolean_value>true</boolean_value> </array-item> </list_value-array> </ns0:ConstantValue> |
Name | Type | Required | Description |
---|---|---|---|
category* |
com.vmware.vapi.metadata.metamodel.constant_value.category | Yes | Category of the type of constant value. The category enumerated type defines enumeration values for the valid kinds of values.Values one of PRIMITIVE: Indicates the type of constant value is primitive. LIST: Indicates the type of constant value is a list. |
primitive_value | primitive_value | No. This field is optional and it is only relevant when the value of category is PRIMITIVE. |
Primitive value of the constant element. Required if category has value PRIMITIVE. |
list_value | List<primitive_value> | No. This field is optional and it is only relevant when the value of category is LIST. |
List value of the constant element. Required if category has value LIST. |
Copyright © 2014. All Rights Reserved.