- java.lang.Object
-
- de.haumacher.msgbuf.data.AbstractDataObject
-
- de.haumacher.msgbuf.graph.cmd.Command
-
- de.haumacher.msgbuf.graph.cmd.ListUpdate
-
- de.haumacher.msgbuf.graph.cmd.RemoveElement
-
- All Implemented Interfaces:
BinaryDataObject,DataObject
public class RemoveElement extends ListUpdate
The removal of an element of a list value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.haumacher.msgbuf.graph.cmd.ListUpdate
ListUpdate.Visitor<R,A,E extends Throwable>
-
Nested classes/interfaces inherited from class de.haumacher.msgbuf.graph.cmd.Command
Command.TypeKind
-
-
Field Summary
Fields Modifier and Type Field Description static StringREMOVE_ELEMENT__TYPEIdentifier for theRemoveElementtype in JSON format.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoveElement()Creates aRemoveElementinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RemoveElementcreate()Creates aRemoveElementinstance.StringjsonType()The type identifier for this concrete subtype.Command.TypeKindkind()The type code of this instance.static RemoveElementreadRemoveElement(DataReader in)Reads a new instance from the given reader.static RemoveElementreadRemoveElement(JsonReader in)Reads a new instance from the given reader.static RemoveElementreadRemoveElement_Content(DataReader in)Helper for creating an object of typeRemoveElementfrom a polymorphic composition.RemoveElementsetId(int value)RemoveElementsetIndex(int value)RemoveElementsetNext(ListUpdate value)RemoveElementsetNode(SharedGraphNode value)RemoveElementsetProperty(String value)inttypeId()The binary identifier for this concrete type in the polymorphicRemoveElementhierarchy.<R,A,E extends Throwable>
Rvisit(ListUpdate.Visitor<R,A,E> v, A arg)Accepts the given visitor.-
Methods inherited from class de.haumacher.msgbuf.graph.cmd.ListUpdate
getIndex, getNext, hasNext, internalSetIndex, internalSetNext, readField, readField, readListUpdate, readListUpdate, visit, writeFields, writeFields
-
Methods inherited from class de.haumacher.msgbuf.graph.cmd.Command
getId, getNode, getProperty, hasNode, internalSetId, internalSetNode, internalSetProperty, readCommand, readCommand, readContent, writeTo, writeTo
-
Methods inherited from class de.haumacher.msgbuf.data.AbstractDataObject
readContent, readFields, toString, writeContent
-
-
-
-
Field Detail
-
REMOVE_ELEMENT__TYPE
public static final String REMOVE_ELEMENT__TYPE
Identifier for theRemoveElementtype in JSON format.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RemoveElement
protected RemoveElement()
Creates aRemoveElementinstance.- See Also:
create()
-
-
Method Detail
-
create
public static RemoveElement create()
Creates aRemoveElementinstance.
-
kind
public Command.TypeKind kind()
Description copied from class:CommandThe type code of this instance.
-
setIndex
public RemoveElement setIndex(int value)
- Overrides:
setIndexin classListUpdate- See Also:
ListUpdate.getIndex()
-
setNext
public RemoveElement setNext(ListUpdate value)
- Overrides:
setNextin classListUpdate- See Also:
ListUpdate.getNext()
-
setId
public RemoveElement setId(int value)
- Overrides:
setIdin classListUpdate- See Also:
Command.getId()
-
setProperty
public RemoveElement setProperty(String value)
- Overrides:
setPropertyin classListUpdate- See Also:
Command.getProperty()
-
setNode
public RemoveElement setNode(SharedGraphNode value)
- Overrides:
setNodein classListUpdate- See Also:
Command.getNode()
-
jsonType
public String jsonType()
Description copied from class:CommandThe type identifier for this concrete subtype.
-
readRemoveElement
public static RemoveElement readRemoveElement(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 polymorphicRemoveElementhierarchy.
-
readRemoveElement
public static RemoveElement readRemoveElement(DataReader in) throws IOException
Reads a new instance from the given reader.- Throws:
IOException
-
readRemoveElement_Content
public static RemoveElement readRemoveElement_Content(DataReader in) throws IOException
Helper for creating an object of typeRemoveElementfrom a polymorphic composition.- Throws:
IOException
-
visit
public <R,A,E extends Throwable> R visit(ListUpdate.Visitor<R,A,E> v, A arg) throws E extends Throwable
Description copied from class:ListUpdateAccepts the given visitor.- Specified by:
visitin classListUpdate- Throws:
E extends Throwable
-
-