Package de.mid.innovator.client
Class InoClientTreeNode<T extends de.mid.innovator.srv2api.impl.MarshallAble>
java.lang.Object
de.mid.innovator.client.InoClientTreeNode<T>
- Type Parameters:
T- class of node
- All Implemented Interfaces:
de.mid.innovator.srv2api.impl.MarshallAble,Iterable<InoClientTreeNode<T>>
public class InoClientTreeNode<T extends de.mid.innovator.srv2api.impl.MarshallAble>
extends Object
implements Iterable<InoClientTreeNode<T>>, de.mid.innovator.srv2api.impl.MarshallAble
A collection with the same characteristics as a tree used within the
Innovator server request. A client tree can be navigated using the
getUp() and getDown() methods, which either takes you to
the next node or returns null. Every node can contain a T type value which
can be queried using the getValue() method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDown()getUp()getValue()booleanisEmpty()Tests if the current node is empty.iterator()Gets an overall iterator of a tree.voidmarshal(de.mid.innovator.srv2api.impl.SrvMemTelegram tel) voidresolveReference(de.mid.innovator.srv2api.impl.SrvMemTelegram tel) voidresolveReferences(de.mid.innovator.srv2api.impl.SrvMemTelegram tel) voidvoidunmarshal(de.mid.innovator.srv2api.impl.SrvMemTelegram tel, SrvContext srvctx) walker()Gets an overall iterator of a tree.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
InoClientTreeNode
-
-
Method Details
-
getUp
-
getDown
-
getValue
-
setValue
-
resolveReference
public void resolveReference(de.mid.innovator.srv2api.impl.SrvMemTelegram tel) -
getFirstChild
-
getParentNode
-
getNextSibling
-
isEmpty
public boolean isEmpty()Tests if the current node is empty.- Returns:
- true if either value is null or the node has no sons, otherwise false
-
iterator
Gets an overall iterator of a tree. -
walker
Gets an overall iterator of a tree. Depth-first search- Returns:
- an iterator
-
marshal
public void marshal(de.mid.innovator.srv2api.impl.SrvMemTelegram tel) - Specified by:
marshalin interfacede.mid.innovator.srv2api.impl.MarshallAble
-
resolveReferences
public void resolveReferences(de.mid.innovator.srv2api.impl.SrvMemTelegram tel) - Specified by:
resolveReferencesin interfacede.mid.innovator.srv2api.impl.MarshallAble
-
unmarshal
- Specified by:
unmarshalin interfacede.mid.innovator.srv2api.impl.MarshallAble
-