vapi metadata metamodel: constant info

The constant_info structure contains metamodel information of the constant elements.

Representations:

{
    "documentation""string",
    "type"{
        "builtin_type""VOID",
        "category""BUILTIN",
        "generic_instantiation"{
            "element_type"{
                "builtin_type""VOID",
                "category""BUILTIN",
                "generic_instantiation"{
                    "generic_type""LIST"
                },
                "user_defined_type"{
                    "resource_id""obj-103",
                    "resource_type""string"
                }
            },
            "generic_type""LIST"
        },
        "user_defined_type"{
            "resource_id""obj-103",
            "resource_type""string"
        }
    },
    "value"{
        "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:ConstantInfo xmlns:ns0="http://vmware.com/vapi/metadata/metamodel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <documentation>string</documentation>
  <value>
    <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>
  </value>
  <type>
    <user_defined_type>
      <resource_id>obj-103</resource_id>
      <resource_type>string</resource_type>
    </user_defined_type>
    <category>BUILTIN</category>
    <generic_instantiation>
      <generic_type>LIST</generic_type>
      <element_type>
        <user_defined_type>
          <resource_id>obj-103</resource_id>
          <resource_type>string</resource_type>
        </user_defined_type>
        <category>BUILTIN</category>
        <generic_instantiation>
          <generic_type>LIST</generic_type>
        </generic_instantiation>
        <builtin_type>VOID</builtin_type>
      </element_type>
    </generic_instantiation>
    <builtin_type>VOID</builtin_type>
  </type>
</ns0:ConstantInfo>

Attributes:

Name Type Description
Required
type type Type of the constant element.

value constant_value Value of the constant element.

documentation string English language documentation for the constant element. It can contain HTML markup and documentation tags (similar to Javadoc tags).