vapi metadata metamodel: constant value

The constant_value structure contains the metamodel information of the constant element.

Representations:

{
    "category""PRIMITIVE",
    "list_value"[
        {
            "boolean_value"true,
            "double_value"1.5,
            "long_value"1,
            "string_value""string",
            "type""BOOLEAN"
        },
        {
            "boolean_value"true,
            "double_value"1.5,
            "long_value"1,
            "string_value""string",
            "type""BOOLEAN"
        }
    ],
    "primitive_value"{
        "boolean_value"true,
        "double_value"1.5,
        "long_value"1,
        "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>1</long_value>
    <double_value>1.5</double_value>
    <string_value>string</string_value>
    <type>BOOLEAN</type>
    <boolean_value>true</boolean_value>
  </primitive_value>
  <list_value-array>
    <array-item>
      <long_value>1</long_value>
      <double_value>1.5</double_value>
      <string_value>string</string_value>
      <type>BOOLEAN</type>
      <boolean_value>true</boolean_value>
    </array-item>
    <array-item>
      <long_value>1</long_value>
      <double_value>1.5</double_value>
      <string_value>string</string_value>
      <type>BOOLEAN</type>
      <boolean_value>true</boolean_value>
    </array-item>
  </list_value-array>
</ns0:ConstantValue>

Attributes:

Name Type Description
Required
category string Category of the type of constant value.

Defines enumeration values for the valid kinds of values. Value is one of:
PRIMITIVE: Indicates the type of constant value is primitive.
LIST: Indicates the type of constant value is a list.

Optional
primitive_value primitive_value Primitive value of the constant element.

Optional. It is only relevant when category has value PRIMITIVE. This field is optional and it is only relevant when the value of category is PRIMITIVE.

list_value primitive_value[] List value of the constant element.

Optional. It is only relevant when category has value LIST. This field is optional and it is only relevant when the value of category is LIST.