E
- public class NodeTreeDataElt<E extends DataElt> extends DataElt
Constructor and Description |
---|
NodeTreeDataElt(java.lang.String name,
DataEltType dataelttype) |
NodeTreeDataElt(java.lang.String name,
DataEltType type,
E payload) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(NodeTreeDataElt<E> child) |
void |
addPayload(MessageReader reader)
for each element, should read and add content for all elements between the
"TYP" field (excluded) and the "DELT" structure end (also excluded)
|
void |
changeName(java.lang.String name)
changes the name of the object.
|
NodeTreeDataElt<E> |
getChild(int i) |
int |
getChildrenNumber() |
E |
getPayload() |
void |
hideElement(NamedInterface marker) |
void |
writeToMessage(MessageWriter writer,
java.util.HashMap<java.lang.String,NamedInterface> hiddenfields) |
getType, readFromCML, toString, writeReferenceToCML
public NodeTreeDataElt(java.lang.String name, DataEltType type, E payload)
public NodeTreeDataElt(java.lang.String name, DataEltType dataelttype)
public E getPayload()
public int getChildrenNumber()
public NodeTreeDataElt<E> getChild(int i)
i
- public void addChild(NodeTreeDataElt<E> child)
child
- adds a child to this nodepublic void writeToMessage(MessageWriter writer, java.util.HashMap<java.lang.String,NamedInterface> hiddenfields) throws java.io.IOException
writeToMessage
in class DataElt
hiddenfields
- if the data is made of Data Objects, it is possible to
hide fieldsjava.io.IOException
public void addPayload(MessageReader reader) throws OLcRemoteException, java.io.IOException
DataElt
addPayload
in class DataElt
reader
- readerOLcRemoteException
- if anything happened to the other partyjava.io.IOException
- if any communication error happenspublic void hideElement(NamedInterface marker)
marker
- marker for fields to be hiddenpublic void changeName(java.lang.String name)
Named
changeName
in class Named