public class MaapiSchemas.CSNode extends Object
Constructor and Description |
---|
CSNode()
Constructor for CSNode class
|
CSNode(int taghash,
int 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(int tagHash)
Retrieve a child with the specified tag
Returns null if no child exists.
|
MaapiSchemas.CSNode |
getChild(long tagHash)
Deprecated.
|
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
|
int |
getNSHash()
Retrieves the namespace represented as hash value
|
MaapiSchemas.CSNode |
getParentNode()
Retrieves the parent node for this node
|
MaapiSchemas.CSNode |
getSibling(int tagHash)
Retrieves sibling with specified tag or null
if no sibling exists.
|
MaapiSchemas.CSNode |
getSibling(long tagHash)
Deprecated.
|
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
|
int |
getTagHash()
Retrieves the node tag represented as hash value
|
MaapiSchemas.CSType |
getType()
get type for the node
|
String |
getXmlNS()
get the xml namespace represented as string
|
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 |
hasMountPoint() |
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 |
isLeafref()
Checks if the node is a YANG 'leafref'.
|
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 CSNode(int taghash, int nshash, MaapiSchemas.CSNodeInfo info, MaapiSchemas.CSNode parentNode, MaapiSchemas.CSNode firstChild, MaapiSchemas.CSNode nextSibling, MaapiSchemas.CSNode previousSibling)
public CSNode()
public int getTagHash()
public String getTag()
public int getNSHash()
public String getNS()
public String getXmlNS()
public MaapiSchemas.CSNodeInfo getNodeInfo()
public MaapiSchemas.CSNode getParentNode()
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 MaapiSchemas.CSNode getSibling(int tagHash)
Retrieves sibling with specified tag or null if no sibling exists.
@Deprecated public MaapiSchemas.CSNode getSibling(long tagHash)
MaapiSchemas.CSNode.getSibling(int)
instead.public List<MaapiSchemas.CSNode> getChildren()
public MaapiSchemas.CSNode getChild(int tagHash)
@Deprecated public MaapiSchemas.CSNode getChild(long tagHash)
MaapiSchemas.CSNode.getChild(int)
insteadpublic MaapiSchemas.CSNode getKey(int index)
public List<MaapiSchemas.CSNode> getKeys()
public int getMinOccurs()
public int getMaxOccurs()
public MaapiSchemas.CSType getType()
public ConfObject getDefval()
public List<MaapiSchemas.CSChoice> getChoices()
public boolean equals(Object o)
public boolean isAction()
public boolean isCase()
public boolean isContainer()
public boolean isEmptyLeaf()
public boolean isLeaf()
public boolean isLeafList()
public boolean isList()
public boolean isActionParam()
public boolean isActionResult()
public boolean isWritable()
public boolean isNotif()
public boolean isOper()
public boolean hasWhen()
public boolean hasDisplayWhen()
public boolean hasMetaData()
public boolean isLeafref()
public boolean hasMountPoint()
public String printNodeType()