Node class abstract

Interface representing a single node in the storage.

Mixed in types
Implementers

Constructors

Node()

Properties

controller StorageController?
get the controller needed for materializing the node if required.
getter/setter pair
extendedLastModified String
Gets a worldwide unique sortable timestamp.
no setter
hashCode int
The hash code for this object.
no setterinherited
lastModified int
Gets a system wide unique timestamp in milliseconds.
getter/setter pair
name String
Gets the name of the current node.
no setter
owner String
Gets the owner of the current object.
getter/setter pair
parentPath String?
Gets the parent path of the node.
no setter
path String
Gets the full path with name of the current node.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skeleton bool
Returns true if the current node is not yet materialized.
no setter
tombstone bool
Returns true if the node was there in the past but deleted.
no setter
visibility Visibility
Gets the current visibility according to the TLP protocol.
getter/setter pair

Methods

addChild(Node node) Future<void>
Adds a child node to this node.
addOrUpdateValue(NodeValue value) Future<void>
Add a key/value pair to the node.
addValue(NodeValue value) Future<void>
Add a key/value pair to the node.
deepClone() Future<Node>
Create a deep clone of the current node.
equals(Object? object) bool
Checks if two NodeValue are equivalent in values.
getChild(String name) Future<Node?>
Gets a child node from the current node.
getChildNodesCsv() Future<String>
Gets the child nodes as CVS export.
getChildren() Future<Map<String, Node>>
Get a map of all existing child nodes.
getValue(String key) Future<NodeValue?>
Get a specific value of the node.
getValues() Future<Map<String, NodeValue>>
Get a deep copy of all values stored in the node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChild(String name) Future<void>
Removes a child node from this node.
removeValue(String key) Future<NodeValue?>
Removes a value from the node.
shallowClone() Future<Node>
Create a shallow clone of the current node.
toByteArrayStream(ByteSink out) → void
Writes the current object to the output stream.
inherited
toString({String prefix = '', bool showTimestamp = true, bool showOrdinals = true, bool showChildren = true}) String
returns a string representation of the object. The prefix is prepended to each line to allow indented representation. The display of the timestamp may be disabled setting showTimestamp to false. Ordinals may be removed by setting showOrdinals to false. The children field of the node may be removed by setting showChildren to false.
override
touch() → void
updates the timestamp to reflect that this node has been touched.
update(Node n2, {bool deepClone = true}) Future<void>
Update all data of the node with the data of the given node.
updateValue(NodeValue value) Future<NodeValue?>
Update a specific value of the node.

Operators

operator ==(Object other) bool
The equality operator.
inherited