MetadataMetamodelType

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.


Properties

builtin_type Optional

Category of the built-in type. This field is optional and it is only relevant when the value of Type.category is BUILTIN.


category Required

Category of this type.


generic_instantiation Optional

Instantiation of one of the generic types available in the interface definition language. This field is optional and it is only relevant when the value of Type.category is GENERIC.


user_defined_type Optional

Identifier and type of the user defined type. This field is optional and it is only relevant when the value of Type.category is USER_DEFINED.

JSON Example

{
    "category": "enum"
}
Feedback

Was this page helpful?