org.rhq.plugins.augeas.helper
Class AugeasNode

java.lang.Object
  extended by org.rhq.plugins.augeas.helper.AugeasNode
Direct Known Subclasses:
AugeasVariable

public class AugeasNode
extends Object

An abstract representation of a node in an Augeas configuration tree (e.g. /files/etc/hosts/3/canonical).

Author:
Ian Springer

Field Summary
static String SEPARATOR
           
static char SEPARATOR_CHAR
           
static char VARIABLE_CHAR
           
 
Constructor Summary
AugeasNode(AugeasNode parent, String name)
           
AugeasNode(String path)
           
AugeasNode(String parentPath, String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 AugeasNode getParent()
           
protected  String getParentPath()
           
 String getPath()
           
 int hashCode()
           
static String patchNodeName(String name)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATOR_CHAR

public static final char SEPARATOR_CHAR
See Also:
Constant Field Values

VARIABLE_CHAR

public static final char VARIABLE_CHAR
See Also:
Constant Field Values

SEPARATOR

public static final String SEPARATOR
Constructor Detail

AugeasNode

public AugeasNode(String path)

AugeasNode

public AugeasNode(AugeasNode parent,
                  String name)

AugeasNode

public AugeasNode(String parentPath,
                  String name)
Method Detail

patchNodeName

public static String patchNodeName(String name)

getName

public String getName()

getPath

public String getPath()

getParent

public AugeasNode getParent()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getParentPath

protected String getParentPath()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.