Documentation ¶
Index ¶
- func NewYangNodeNavigator(root *yang.Entry, device ygot.ValidatedGoStruct) xpath.NodeNavigator
- type XpathEvaluate
- type XpathSelect
- type YangNodeNavigator
- func (x *YangNodeNavigator) Copy() xpath.NodeNavigator
- func (x *YangNodeNavigator) LocalName() string
- func (x *YangNodeNavigator) MoveTo(other xpath.NodeNavigator) bool
- func (x *YangNodeNavigator) MoveToChild() bool
- func (x *YangNodeNavigator) MoveToFirst() bool
- func (x *YangNodeNavigator) MoveToNext() bool
- func (x *YangNodeNavigator) MoveToNextAttribute() bool
- func (x *YangNodeNavigator) MoveToParent() bool
- func (x *YangNodeNavigator) MoveToPrevious() bool
- func (x *YangNodeNavigator) MoveToRoot()
- func (x *YangNodeNavigator) NodeType() xpath.NodeType
- func (x *YangNodeNavigator) Prefix() string
- func (x *YangNodeNavigator) Value() string
- func (x *YangNodeNavigator) WalkAndValidateMust() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewYangNodeNavigator ¶
func NewYangNodeNavigator(root *yang.Entry, device ygot.ValidatedGoStruct) xpath.NodeNavigator
Types ¶
type XpathEvaluate ¶ added in v0.8.16
type XpathSelect ¶ added in v0.8.16
type YangNodeNavigator ¶
type YangNodeNavigator struct {
// contains filtered or unexported fields
}
YangNodeNavigator - implements xpath.NodeNavigator
func (*YangNodeNavigator) Copy ¶
func (x *YangNodeNavigator) Copy() xpath.NodeNavigator
Copy does a deep copy of the YangNodeNavigator and all its components.
func (*YangNodeNavigator) LocalName ¶
func (x *YangNodeNavigator) LocalName() string
LocalName gets the Name of the current node.
func (*YangNodeNavigator) MoveTo ¶
func (x *YangNodeNavigator) MoveTo(other xpath.NodeNavigator) bool
MoveTo moves the YangNodeNavigator to the same position as the specified YangNodeNavigator.
func (*YangNodeNavigator) MoveToChild ¶
func (x *YangNodeNavigator) MoveToChild() bool
MoveToChild moves the YangNodeNavigator to the first child node of the current node.
func (*YangNodeNavigator) MoveToFirst ¶
func (x *YangNodeNavigator) MoveToFirst() bool
MoveToFirst moves the YangNodeNavigator to the first sibling node of the current node.
func (*YangNodeNavigator) MoveToNext ¶
func (x *YangNodeNavigator) MoveToNext() bool
MoveToNext moves the YangNodeNavigator to the next sibling node of the current node.
func (*YangNodeNavigator) MoveToNextAttribute ¶
func (x *YangNodeNavigator) MoveToNextAttribute() bool
MoveToNextAttribute moves the YangNodeNavigator to the next attribute on current node.
func (*YangNodeNavigator) MoveToParent ¶
func (x *YangNodeNavigator) MoveToParent() bool
MoveToParent moves the YangNodeNavigator to the parent node of the current node.
func (*YangNodeNavigator) MoveToPrevious ¶
func (x *YangNodeNavigator) MoveToPrevious() bool
MoveToPrevious moves the YangNodeNavigator to the previous sibling node of the current node.
func (*YangNodeNavigator) MoveToRoot ¶
func (x *YangNodeNavigator) MoveToRoot()
MoveToRoot moves the YangNodeNavigator to the root node of the current node.
func (*YangNodeNavigator) NodeType ¶
func (x *YangNodeNavigator) NodeType() xpath.NodeType
NodeType returns the XPathNodeType of the current node.
func (*YangNodeNavigator) Prefix ¶
func (x *YangNodeNavigator) Prefix() string
Prefix returns namespace prefix associated with the current node.
func (*YangNodeNavigator) Value ¶
func (x *YangNodeNavigator) Value() string
Value gets the value of current node.
func (*YangNodeNavigator) WalkAndValidateMust ¶ added in v0.8.16
func (x *YangNodeNavigator) WalkAndValidateMust() error
WalkAndValidateMust - walk through the YNN and validate any Must statements This goes down first and then across