public class DefaultYpmNode extends Object implements YpmContext
| Constructor and Description |
|---|
DefaultYpmNode(String name)
Creates a specific type of node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(String ypmName)
Adds child to a node by ydt name.
|
void |
addSibling(String ypmName)
Adds new sibling to a child.
|
YpmContext |
getChild(String ypmName)
Retrieves the child of a node for corresponding ydt node.
|
YpmContext |
getFirstChild()
Retrieves the first child of a node.
|
Object |
getMetaData()
Retrieves protocol metadata.
|
String |
getName()
Returns the node name.
|
DefaultYpmNode |
getNextSibling()
Returns the context of next sibling.
|
DefaultYpmNode |
getParent()
Returns the context of parent node.
|
DefaultYpmNode |
getPreviousSibling()
Returns the previous sibling of a node.
|
YpmContext |
getSibling(String ypmName)
Retrieves sibling of a child by (ydt) name.
|
void |
setMetaData(Object data)
Sets the protocol metadata.
|
void |
setName(String name)
Sets the nodes name.
|
void |
setNextSibling(DefaultYpmNode sibling)
Sets the next sibling of node.
|
void |
setParent(YpmContext parent)
Sets the context of parent node.
|
void |
setPreviousSibling(DefaultYpmNode sibling)
Sets the previous sibling.
|
public DefaultYpmNode(String name)
name - of ypm nodepublic String getName()
YpmContextgetName in interface YpmContextpublic void setName(String name)
YpmContextsetName in interface YpmContextname - nodes namepublic DefaultYpmNode getParent()
YpmContextgetParent in interface YpmContextpublic void setParent(YpmContext parent)
YpmContextsetParent in interface YpmContextparent - node parentpublic YpmContext getFirstChild()
YpmContextgetFirstChild in interface YpmContextpublic YpmContext getChild(String ypmName)
YpmContextgetChild in interface YpmContextypmName - ypm nodepublic void addChild(String ypmName)
YpmContextaddChild in interface YpmContextypmName - ypm namepublic YpmContext getSibling(String ypmName)
YpmContextgetSibling in interface YpmContextypmName - ypm namepublic void addSibling(String ypmName)
YpmContextaddSibling in interface YpmContextypmName - ypm namepublic DefaultYpmNode getNextSibling()
YpmContextgetNextSibling in interface YpmContextpublic void setNextSibling(DefaultYpmNode sibling)
YpmContextsetNextSibling in interface YpmContextsibling - ypm nodepublic DefaultYpmNode getPreviousSibling()
YpmContextgetPreviousSibling in interface YpmContextpublic void setPreviousSibling(DefaultYpmNode sibling)
YpmContextsetPreviousSibling in interface YpmContextsibling - points to predecessor siblingpublic Object getMetaData()
YpmContextgetMetaData in interface YpmContextpublic void setMetaData(Object data)
YpmContextsetMetaData in interface YpmContextdata - metadata