Package com.tailf.navu
Class NavuNodeInfo
Object
com.tailf.navu.NavuNodeInfo
This class contains meta information for a node.
-
Constructor Summary
ConstructorDescriptionCreates a NavuNodeInfo based on a schema node. -
Method Summary
Modifier and TypeMethodDescriptionReturns the schema node from which the object is derive from.boolean
isAction()
Checks if a node is an action.boolean
Checks if a node is an action parameter node.boolean
Checks if a node is an action result node.boolean
isCase()
Checks if a node is top level of a case.boolean
isCdb()
boolean
boolean
Checks if a node is a container node.boolean
boolean
isLeaf()
Checks if a node is a leaf node.boolean
Checks if the node is a leaf-list node.boolean
Checks if the node is a YANG 'leafref'.boolean
isList()
Checks if a node is a list node.boolean
boolean
isModule()
boolean
isNotif()
Checks if the node is a notificationboolean
isOper()
boolean
boolean
Checks if the node is writable.boolean
Checks if the node is writable for all data.toString()
-
Constructor Details
-
NavuNodeInfo
Creates a NavuNodeInfo based on a schema node.- Parameters:
node
-
-
-
Method Details
-
isListEntry
public boolean isListEntry() -
getCsNode
Returns the schema node from which the object is derive from.- Returns:
- a given schema node.
-
getCSNode
-
isAction
public boolean isAction()Checks if a node is an action.- Returns:
- true if it is an action.
-
isCase
public boolean isCase()Checks if a node is top level of a case.- Returns:
- true if the node is part of a case.
-
isCdb
public boolean isCdb() -
isContainer
public boolean isContainer()Checks if a node is a container node.- Returns:
- true if the node is a container node.
-
isEmptyLeaf
public boolean isEmptyLeaf() -
isLeaf
public boolean isLeaf()Checks if a node is a leaf node.- Returns:
- true if the node is leaf node.
-
isLeafList
public boolean isLeafList()Checks if the node is a leaf-list node.- Returns:
- true if the node is leaf-list node.
-
isList
public boolean isList()Checks if a node is a list node.- Returns:
- true if the node is list node.
-
isActionParam
public boolean isActionParam()Checks if a node is an action parameter node.- Returns:
- true if the node is an action parameter node.
-
isActionResult
public boolean isActionResult()Checks if a node is an action result node.- Returns:
- true if the node is action result node.
-
isModule
public boolean isModule() -
isWritable
public boolean isWritable()Checks if the node is writable.- Returns:
- true if the node is writable.
-
isWritableAll
public boolean isWritableAll()Checks if the node is writable for all data.- Returns:
- true if the node is writable for all data.
-
isNotif
public boolean isNotif()Checks if the node is a notification- Returns:
- true if the node a notification
-
isLeafref
public boolean isLeafref()Checks if the node is a YANG 'leafref'.- Returns:
- true if node is a YANG 'leafref'.
-
toString
-
isOper
public boolean isOper()- Returns:
- true if node is OPER data.
-
printNodeType
-
getCSSchema
- Returns:
- the schema of a module.
-
getCSSchemas
- Returns:
- the schema of a module.
-
isRootOfModules
public boolean isRootOfModules()- Returns:
- true if this is the true root above all loaded modules.
-
isChildNode
public boolean isChildNode()- Returns:
- true is this is a child node, not a module or root of modules.
-