public class MaapiSchemas.CSNode extends Object
Constructor and Description |
---|
MaapiSchemas.CSNode()
Constructor for CSNode class
|
MaapiSchemas.CSNode(long taghash,
long nshash,
MaapiSchemas.CSNodeInfo info,
MaapiSchemas.CSNode parentNode,
MaapiSchemas.CSNode firstChild,
MaapiSchemas.CSNode nextSibling,
MaapiSchemas.CSNode previousSibling) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Return true if and onlfy if this nodes
is equal the specified node
|
MaapiSchemas.CSNode |
getChild(long tagHash)
Retrieve a child with the specified tag
Returns null if no child exists.
|
List<MaapiSchemas.CSNode> |
getChildren()
Retrieves children for this node as List or
null if no children exists.
|
List<MaapiSchemas.CSChoice> |
getChoices()
get List object of choices for this node.
|
ConfObject |
getDefval()
get default value represented as a subclass to ConfObject
|
MaapiSchemas.CSNode |
getKey(int index)
Return a key at the given index.
|
List<MaapiSchemas.CSNode> |
getKeys()
Return a list of keys.
|
int |
getMaxOccurs()
get MaxOccurs for the node
|
int |
getMinOccurs()
get MinOccurs for the node
|
MaapiSchemas.CSNodeInfo |
getNodeInfo()
Retrieves the node information
|
String |
getNS()
get namespace represented as string
|
long |
getNSHash()
Retrieves the namespace represented as hash value
|
MaapiSchemas.CSNode |
getParentNode()
Retrieves the parent node for this node
|
MaapiSchemas.CSNode |
getSibling(long tagHash)
Retrieves sibling with specified tag or null
if no sibling exists.
|
List<MaapiSchemas.CSNode> |
getSiblings()
Retrieves siblings for this node as List or null
if no siblings exists.
|
String |
getTag()
Retrieves the node tag represented as string
|
long |
getTagHash()
Retrieves the node tag represented as hash value
|
MaapiSchemas.CSType |
getType()
get type for the node
|
boolean |
hasDisplayWhen()
Checks if the node has YANG 'tailf:display-when' statement(s).
|
int |
hashCode() |
boolean |
hasMetaData()
Checks if the node has YANG 'tailf:meta-data' statement(s).
|
boolean |
hasWhen()
Checks if the node has YANG 'when' statement(s).
|
boolean |
isAction()
Checks if a node is an action.
|
boolean |
isActionParam()
Checks if a node is an action parameter node.
|
boolean |
isActionResult()
Checks if a node is an action result node.
|
boolean |
isCase()
Checks if a node is top level of a case.
|
boolean |
isContainer()
Checks if a node is a container node.
|
boolean |
isEmptyLeaf() |
boolean |
isLeaf()
Checks if a node is a leaf node.
|
boolean |
isLeafList()
Checks if the node is a leaf-list node.
|
boolean |
isList()
Checks if a node is a list node.
|
boolean |
isNotif()
Checks if the node is a notification
|
boolean |
isOper() |
boolean |
isWritable()
Checks if the node is writable.
|
String |
printNodeType() |
String |
toString()
Informative string representation of a CSNode instance
|
public MaapiSchemas.CSNode()
public MaapiSchemas.CSNode(long taghash, long nshash, MaapiSchemas.CSNodeInfo info, MaapiSchemas.CSNode parentNode, MaapiSchemas.CSNode firstChild, MaapiSchemas.CSNode nextSibling, MaapiSchemas.CSNode previousSibling)
public boolean equals(Object o)
public MaapiSchemas.CSNode getChild(long tagHash)
public List<MaapiSchemas.CSNode> getChildren()
public List<MaapiSchemas.CSChoice> getChoices()
public ConfObject getDefval()
public MaapiSchemas.CSNode getKey(int index)
public List<MaapiSchemas.CSNode> getKeys()
public int getMaxOccurs()
public int getMinOccurs()
public MaapiSchemas.CSNodeInfo getNodeInfo()
public String getNS()
public long getNSHash()
public MaapiSchemas.CSNode getParentNode()
public MaapiSchemas.CSNode getSibling(long tagHash)
Retrieves sibling with specified tag or null if no sibling exists.
public List<MaapiSchemas.CSNode> getSiblings()
Retrieves siblings for this node as List or null if no siblings exists.
Includes the current node in the List.
public String getTag()
public long getTagHash()
public MaapiSchemas.CSType getType()
public boolean hasDisplayWhen()
public boolean hasMetaData()
public boolean hasWhen()
public boolean isAction()
public boolean isActionParam()
public boolean isActionResult()
public boolean isCase()
public boolean isContainer()
public boolean isEmptyLeaf()
public boolean isLeaf()
public boolean isLeafList()
public boolean isList()
public boolean isNotif()
public boolean isOper()
public boolean isWritable()
public String printNodeType()