- 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
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.
-
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 subtype.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.static SetPropertyreadSetProperty_Content(DataReader in)Helper for creating an object of typeSetPropertyfrom a polymorphic composition.SetPropertysetId(int value)SetPropertysetNode(SharedGraphNode value)SetPropertysetProperty(String value)inttypeId()The binary identifier for this concrete type in the polymorphicSetPropertyhierarchy.<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
getId, getNode, getProperty, hasNode, internalSetId, internalSetNode, internalSetProperty, readCommand, readCommand, readContent, readField, readField, 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
-
-
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.
-
setId
public SetProperty setId(int value)
- Overrides:
setIdin classCommand- See Also:
Command.getId()
-
setProperty
public SetProperty setProperty(String value)
- Overrides:
setPropertyin classCommand- See Also:
Command.getProperty()
-
setNode
public SetProperty setNode(SharedGraphNode value)
- Overrides:
setNodein classCommand- See Also:
Command.getNode()
-
jsonType
public String jsonType()
Description copied from class:CommandThe type identifier for this concrete subtype.
-
readSetProperty
public static SetProperty readSetProperty(JsonReader in) throws IOException
Reads a new instance from the given reader.- Throws:
IOException
-
typeId
public int typeId()
The binary identifier for this concrete type in the polymorphicSetPropertyhierarchy.
-
readSetProperty
public static SetProperty readSetProperty(DataReader in) throws IOException
Reads a new instance from the given reader.- Throws:
IOException
-
readSetProperty_Content
public static SetProperty readSetProperty_Content(DataReader in) throws IOException
Helper for creating an object of typeSetPropertyfrom a polymorphic composition.- Throws:
IOException
-
-