public interface YpmContext
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(String name)
Adds child to a node by ydt name.
|
void |
addSibling(String name)
Adds new sibling to a child.
|
YpmContext |
getChild(String name)
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.
|
YpmContext |
getNextSibling()
Returns the context of next sibling.
|
YpmContext |
getParent()
Returns the context of parent node.
|
DefaultYpmNode |
getPreviousSibling()
Returns the previous sibling of a node.
|
YpmContext |
getSibling(String name)
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 previousSibling)
Sets the previous sibling.
|
String getName()
void setName(String name)
name - nodes nameYpmContext getParent()
void setParent(YpmContext parent)
parent - node parentYpmContext getFirstChild()
YpmContext getChild(String name)
name - ypm nodevoid addChild(String name)
name - ypm nameYpmContext getSibling(String name)
name - ypm namevoid addSibling(String name)
name - ypm nameYpmContext getNextSibling()
void setNextSibling(DefaultYpmNode sibling)
sibling - ypm nodeDefaultYpmNode getPreviousSibling()
void setPreviousSibling(DefaultYpmNode previousSibling)
previousSibling - points to predecessor siblingObject getMetaData()
void setMetaData(Object data)
data - metadata