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