public class AugeasNodeSearch extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
NESTED_DIRECTIVES |
| Constructor and Description |
|---|
AugeasNodeSearch() |
| Modifier and Type | Method and Description |
|---|---|
static AugeasNode |
findNodeById(AugeasNode parentNode,
String params) |
static List<AugeasNode> |
getNodeByParentParams(AugeasNode parentNode,
String nodeName,
List<String> nodeParams) |
static AugeasNode |
getNodeFromParentById(AugeasNode parentNode,
String params) |
static int |
getNodeIndex(AugeasNode node)
If there is a more nodes which have the same node name and the same value of parameters than we need index
for identification of Node.
|
static String |
getNodeKey(AugeasNode node,
AugeasNode parentNode)
Returns the unique identifier of node.
|
static String |
getNodeKeyFromParent(AugeasNode node)
Returns the unique identifier of node.
|
static String |
getNodeParamString(AugeasNode nd)
Returns all params of node as one string.
|
static List<String> |
getParams(AugeasNode node,
AugeasNode parentNode) |
static List<AugeasNode> |
searchNode(String[] parentNodeNames,
String nodeName,
AugeasNode startNode)
Searches for all nodes in parent nodes's subtree which matches specified criteria.
|
public static String[] NESTED_DIRECTIVES
public static List<AugeasNode> searchNode(String[] parentNodeNames, String nodeName, AugeasNode startNode)
parentNodeNames - nodeName - startNode - public static List<AugeasNode> getNodeByParentParams(AugeasNode parentNode, String nodeName, List<String> nodeParams)
public static List<String> getParams(AugeasNode node, AugeasNode parentNode)
public static String getNodeParamString(AugeasNode nd)
nd - public static int getNodeIndex(AugeasNode node)
node - public static String getNodeKeyFromParent(AugeasNode node)
node - public static String getNodeKey(AugeasNode node, AugeasNode parentNode)
node - parentNode - public static AugeasNode findNodeById(AugeasNode parentNode, String params)
public static AugeasNode getNodeFromParentById(AugeasNode parentNode, String params)
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.