- java.lang.Object
-
- de.haumacher.msgbuf.data.AbstractDataObject
-
- de.haumacher.msgbuf.graph.cmd.Command
-
- de.haumacher.msgbuf.graph.cmd.SetProperty
-
- All Implemented Interfaces:
BinaryDataObject,DataObject,ReflectiveDataObject,Observable
public class SetProperty extends Command
An operation setting the value of a property to a new value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.haumacher.msgbuf.graph.cmd.Command
Command.TypeKind, Command.Visitor<R,A,E extends Throwable>
-
-
Field Summary
Fields Modifier and Type Field Description static StringSET_PROPERTY__TYPEIdentifier for theSetPropertytype in JSON format.static intSET_PROPERTY__TYPE_IDIdentifier for theSetPropertytype in binary format.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSetProperty()Creates aSetPropertyinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetPropertycreate()Creates aSetPropertyinstance.StringjsonType()The type identifier for this concrete sub-type.Command.TypeKindkind()The type code of this instance.static SetPropertyreadSetProperty(DataReader in)Reads a new instance from the given reader.static SetPropertyreadSetProperty(JsonReader in)Reads a new instance from the given reader.inttypeId()The binary identifier for this concrete type in the polymorphicCommandhierarchy.<R,A,E extends Throwable>
Rvisit(Command.Visitor<R,A,E> v, A arg)Accepts the given visitor.-
Methods inherited from class de.haumacher.msgbuf.graph.cmd.Command
get, getId, getNode, getProperty, hasNode, properties, readCommand, readCommand, readField, readField, registerListener, set, setId, setNode, setProperty, unregisterListener, writeFields, writeFields, writeTo, writeTo
-
Methods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContent
-
-
-
-
Field Detail
-
SET_PROPERTY__TYPE
public static final String SET_PROPERTY__TYPE
Identifier for theSetPropertytype in JSON format.- See Also:
- Constant Field Values
-
SET_PROPERTY__TYPE_ID
public static final int SET_PROPERTY__TYPE_ID
Identifier for theSetPropertytype in binary format.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetProperty
protected SetProperty()
Creates aSetPropertyinstance.- See Also:
create()
-
-
Method Detail
-
create
public static SetProperty create()
Creates aSetPropertyinstance.
-
kind
public Command.TypeKind kind()
Description copied from class:CommandThe type code of this instance.
-
jsonType
public String jsonType()
Description copied from interface:ReflectiveDataObjectThe type identifier for this concrete sub-type.
-
readSetProperty
public static SetProperty readSetProperty(JsonReader in) throws IOException
Reads a new instance from the given reader.- Throws:
IOException
-
typeId
public int typeId()
Description copied from class:CommandThe binary identifier for this concrete type in the polymorphicCommandhierarchy.
-
readSetProperty
public static SetProperty readSetProperty(DataReader in) throws IOException
Reads a new instance from the given reader.- Throws:
IOException
-
-