Metadata_Metamodel_ConstantInfo

Metadata_Metamodel_ConstantInfo
Metadata_Metamodel_ConstantInfo

The ConstantInfo structure contains metamodel information of the constant elements.

JSON Example
{
    "type": {
        "category": "string",
        "builtin_type": "string",
        "user_defined_type": {
            "resource_type": "string",
            "resource_id": "string"
        },
        "generic_instantiation": {
            "generic_type": "string",
            "element_type": "Metadata_Metamodel_Type Object",
            "map_key_type": "Metadata_Metamodel_Type Object",
            "map_value_type": "Metadata_Metamodel_Type Object"
        }
    },
    "value": {
        "category": "string",
        "primitive_value": {
            "type": "string",
            "boolean_value": false,
            "double_value": "number",
            "long_value": 0,
            "string_value": "string"
        },
        "list_value": [
            {
                "type": "string",
                "boolean_value": false,
                "double_value": "number",
                "long_value": 0,
                "string_value": "string"
            }
        ]
    },
    "documentation": "string"
}
type
Required

The Type structure describes the type information of a typed element in the interface definiton language. The following elements in the metamodel are typed:

  • Field element in a structure element. See StructureInfo.fields
  • Parameter element in an operation element. See OperationInfo.params
  • Result element in an operation element. See OperationInfo.output The type could be one of the three following categories:
  • Built-in types: These are types present in the interface definition language type system. They are provided by the infrastructure.
  • User defined named type: API designers can create custom types and use them for the typed elements. These types have a unique identifier.
  • Generic type instantiation: The language infrastructure also provides generic types such as list, map, set and so on. An instantiation of one of these generic types could also be used for the typed elements.
value
Required

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

string
documentation
Required

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