Class MapKeyDefinition
-
- All Implemented Interfaces:
@Serializable() public final class MapKeyDefinition implements AnyDefinition
Definition of a Map key in a Wrap ABI.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final Integerkindprivate final Stringnameprivate final Booleanrequiredprivate final ArrayDefinitionarrayprivate final ScalarDefinitionscalarprivate final MapDefinitionmapprivate final GenericDefinition_objectprivate final GenericDefinitionenumprivate final GenericDefinitionunresolvedObjectOrEnum
-
Constructor Summary
Constructors Constructor Description MapKeyDefinition(String type, Integer kind, String name, Boolean required, ArrayDefinition array, ScalarDefinition scalar, MapDefinition map, GenericDefinition _object, GenericDefinition enum, GenericDefinition unresolvedObjectOrEnum)
-
Method Summary
Modifier and Type Method Description StringgetType()Type of the key. IntegergetKind()Kind of the definition. StringgetName()Optional name of the key. BooleangetRequired()Boolean indicating whether the key is required or not. ArrayDefinitiongetArray()Definition of the inner array if the key is of array type. ScalarDefinitiongetScalar()Definition of the inner scalar if the key is of scalar type. MapDefinitiongetMap()Definition of the inner map if the key is of map type. GenericDefinitionget_object()Reference to the object if the key is of object type. GenericDefinitiongetEnum()Reference to the enum if the key is of enum type. GenericDefinitiongetUnresolvedObjectOrEnum()Reference to the unresolved object or enum if the key is of an unresolved type. -
-
Constructor Detail
-
MapKeyDefinition
MapKeyDefinition(String type, Integer kind, String name, Boolean required, ArrayDefinition array, ScalarDefinition scalar, MapDefinition map, GenericDefinition _object, GenericDefinition enum, GenericDefinition unresolvedObjectOrEnum)
-
-
Method Detail
-
getRequired
Boolean getRequired()
Boolean indicating whether the key is required or not.
-
getArray
ArrayDefinition getArray()
Definition of the inner array if the key is of array type.
-
getScalar
ScalarDefinition getScalar()
Definition of the inner scalar if the key is of scalar type.
-
getMap
MapDefinition getMap()
Definition of the inner map if the key is of map type.
-
get_object
GenericDefinition get_object()
Reference to the object if the key is of object type.
-
getEnum
GenericDefinition getEnum()
Reference to the enum if the key is of enum type.
-
getUnresolvedObjectOrEnum
GenericDefinition getUnresolvedObjectOrEnum()
Reference to the unresolved object or enum if the key is of an unresolved type.
-
-
-
-