Class StringOption
java.lang.Object
de.haumacher.msgbuf.data.AbstractDataObject
de.haumacher.msgbuf.generator.ast.Option
de.haumacher.msgbuf.generator.ast.StringOption
- All Implemented Interfaces:
DataObject,ReflectiveDataObject,Observable
Option annotating a string value-
Nested Class Summary
Nested classes/interfaces inherited from class de.haumacher.msgbuf.generator.ast.Option
Option.TypeKind, Option.Visitor<R,A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifier for theStringOptiontype in JSON format.static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringOptioncreate()Creates aStringOptioninstance.final StringgetValue()The string value assigned to the option.protected final voidinternalSetValue(String value) Internal setter forgetValue()without chain call utility.jsonType()kind()The type code of this instance.protected voidreadField(JsonReader in, String field) static StringOptionReads a new instance from the given reader.void<R,A> R visit(Option.Visitor<R, A> v, A arg) Accepts the given visitor.protected voidwriteFields(JsonWriter out) Methods inherited from class de.haumacher.msgbuf.generator.ast.Option
internalRegisterListener, internalUnregisterListener, readOption, registerListener, unregisterListener, writeToMethods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContent
-
Field Details
-
STRING_OPTION__TYPE
Identifier for theStringOptiontype in JSON format.- See Also:
-
VALUE__PROP
- See Also:
-
-
Constructor Details
-
StringOption
protected StringOption()Creates aStringOptioninstance.- See Also:
-
-
Method Details
-
create
Creates aStringOptioninstance. -
kind
Description copied from class:OptionThe type code of this instance. -
getValue
The string value assigned to the option. -
setValue
- See Also:
-
internalSetValue
Internal setter forgetValue()without chain call utility. -
jsonType
-
properties
-
get
-
set
-
readStringOption
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:OptionAccepts the given visitor.
-