Class CustomType
java.lang.Object
de.haumacher.msgbuf.data.AbstractDataObject
de.haumacher.msgbuf.generator.ast.Type
de.haumacher.msgbuf.generator.ast.CustomType
- All Implemented Interfaces:
DataObject,ReflectiveDataObject,Observable
-
Nested Class Summary
Nested classes/interfaces inherited from class de.haumacher.msgbuf.generator.ast.Type
Type.TypeKind, Type.Visitor<R,A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifier for theCustomTypetype in JSON format.static final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTypecreate()Creates aCustomTypeinstance.final DefinitionResolved reference of theDefinitiondefining thereferenced type.final QNamegetName()The name of the reference type.final booleanChecks, whethergetDefinition()has a value.final booleanhasName()Checks, whethergetName()has a value.protected final voidinternalSetDefinition(Definition value) Internal setter forgetDefinition()without chain call utility.protected final voidinternalSetName(QName value) Internal setter forgetName()without chain call utility.jsonType()kind()The type code of this instance.static CustomTypeReads a new instance from the given reader.protected voidreadField(JsonReader in, String field) voidsetDefinition(Definition value) <R,A> R visit(Type.Visitor<R, A> v, A arg) Accepts the given visitor.protected voidwriteFields(JsonWriter out) Methods inherited from class de.haumacher.msgbuf.generator.ast.Type
internalRegisterListener, internalUnregisterListener, readType, registerListener, unregisterListener, writeToMethods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContent
-
Field Details
-
CUSTOM_TYPE__TYPE
Identifier for theCustomTypetype in JSON format.- See Also:
-
NAME__PROP
- See Also:
-
DEFINITION__PROP
- See Also:
-
-
Constructor Details
-
CustomType
protected CustomType()Creates aCustomTypeinstance.- See Also:
-
-
Method Details
-
create
Creates aCustomTypeinstance. -
kind
Description copied from class:TypeThe type code of this instance. -
getName
The name of the reference type. -
setName
- See Also:
-
internalSetName
Internal setter forgetName()without chain call utility. -
hasName
public final boolean hasName()Checks, whethergetName()has a value. -
getDefinition
Resolved reference of theDefinitiondefining thereferenced type. -
setDefinition
- See Also:
-
internalSetDefinition
Internal setter forgetDefinition()without chain call utility. -
hasDefinition
public final boolean hasDefinition()Checks, whethergetDefinition()has a value. -
jsonType
-
properties
-
get
-
set
-
readCustomType
Reads a new instance from the given reader.- Throws:
IOException
-
writeFields
- Overrides:
writeFieldsin classAbstractDataObject- Throws:
IOException
-
readField
- Overrides:
readFieldin classAbstractDataObject- Throws:
IOException
-
visit
Description copied from class:TypeAccepts the given visitor.
-