|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.augeas.tree.impl.AbstractAugeasTree
public abstract class AbstractAugeasTree
Abstract base class implementing the basic set of methods of the tree.
| Field Summary |
|---|
| Fields inherited from interface org.rhq.augeas.tree.AugeasTree |
|---|
AUGEAS_DATA_PATH, PATH_SEPARATOR |
| Constructor Summary | |
|---|---|
protected |
AbstractAugeasTree(net.augeas.Augeas ag,
AugeasModuleConfig moduleConfig)
|
| Method Summary | |
|---|---|
AugeasNode |
createNode(AugeasNode parentNode,
String name,
String value,
int seq)
Creates a new child node under given parent. |
String |
get(String expr)
Returns a value of the first node matching the expression. |
protected net.augeas.Augeas |
getAugeas()
|
File |
getFile(AugeasNode node)
|
protected List<String> |
getIncludeGlobs()
|
protected AugeasNode |
getLoadedNode(String path)
Returns the node on given path or null if it wasn't loaded yet. |
protected AugeasModuleConfig |
getModuleConfig()
|
AugeasNode |
getNode(String path)
Checks whether a node exists on given path. |
protected AugeasNodeBuffer |
getNodeBuffer()
|
AugeasNode |
getRootNode()
|
List<AugeasNode> |
match(String expression)
Performs a search using Augeas expression on the tree. |
List<AugeasNode> |
matchRelative(AugeasNode node,
String expression)
Performs a search using Augeas expression on the tree starting at given node. |
void |
save()
Persists the tree using Augeas to the individual files. |
void |
setRootNode(AugeasNode node)
Sets the root node. |
void |
setValue(AugeasNode node,
String value)
Sets the value of the node directly in Augeas, bypassing the in-memory tree representation. |
String |
summarizeAugeasError()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.rhq.augeas.tree.AugeasTree |
|---|
createNode, removeNode |
| Constructor Detail |
|---|
protected AbstractAugeasTree(net.augeas.Augeas ag,
AugeasModuleConfig moduleConfig)
| Method Detail |
|---|
protected net.augeas.Augeas getAugeas()
protected AugeasModuleConfig getModuleConfig()
protected AugeasNodeBuffer getNodeBuffer()
public AugeasNode createNode(AugeasNode parentNode,
String name,
String value,
int seq)
throws AugeasTreeException
AugeasTree
createNode in interface AugeasTreeparentNode - the parent nodename - name of the child nodevalue - value of the child nodeseq - the sequence number of the child node
AugeasTreeExceptionpublic String get(String expr)
AugeasTreeAugeas.get(String).
get in interface AugeasTreeexpr - the Augeas expression.
public File getFile(AugeasNode node)
getFile in interface AugeasTree
public AugeasNode getNode(String path)
throws AugeasTreeException
AugeasTree
getNode in interface AugeasTreepath - the path to look for
AugeasTreeExceptionpublic AugeasNode getRootNode()
getRootNode in interface AugeasTree
public List<AugeasNode> match(String expression)
throws AugeasTreeException
AugeasTree
match in interface AugeasTreeAugeasTreeException
public List<AugeasNode> matchRelative(AugeasNode node,
String expression)
throws AugeasTreeException
AugeasTree
matchRelative in interface AugeasTreenode - the node to start searching fromexpression - the expression
AugeasTreeExceptionpublic void save()
AugeasTree
save in interface AugeasTreepublic void setRootNode(AugeasNode node)
AugeasTree
setRootNode in interface AugeasTree
public void setValue(AugeasNode node,
String value)
AugeasTree
setValue in interface AugeasTreepublic String summarizeAugeasError()
summarizeAugeasError in interface AugeasTreeprotected AugeasNode getLoadedNode(String path)
path -
protected List<String> getIncludeGlobs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||