org.rhq.augeas.node
Class AugeasNodeReal
java.lang.Object
org.rhq.augeas.node.AugeasNodeBase
org.rhq.augeas.node.AugeasNodeReal
- All Implemented Interfaces:
- AugeasNode
public class AugeasNodeReal
- extends AugeasNodeBase
- implements AugeasNode
Implementation of the augeas node that loads all children eagerly.
- Author:
- Filip Drabek
AugeasNodeReal
public AugeasNodeReal()
AugeasNodeReal
public AugeasNodeReal(AugeasNode parentNode,
AugeasTree tree,
String label,
int seq)
AugeasNodeReal
public AugeasNodeReal(AugeasNode parentNode,
AugeasTree ag,
String fullPath)
AugeasNodeReal
public AugeasNodeReal(String path,
String label,
int seq,
String value)
equals
public boolean equals(Object obj)
- Specified by:
equals in interface AugeasNode- Overrides:
equals in class Object
getFullPath
public String getFullPath()
- Specified by:
getFullPath in interface AugeasNode
- Returns:
- the full path of the node including its label and sequence number
addChildNode
public void addChildNode(AugeasNode node)
- Specified by:
addChildNode in interface AugeasNode
getChildByLabel
public List<AugeasNode> getChildByLabel(String labelName)
- Specified by:
getChildByLabel in interface AugeasNode
remove
public void remove(boolean updateSeq)
throws AugeasTreeException
- Description copied from interface:
AugeasNode
- Removes the node from its parent children optionally updating
the sequence numbers of the sibling nodes with the same label.
- Specified by:
remove in interface AugeasNode
- Parameters:
updateSeq - whether to update the siblings' sequence numbers
- Throws:
AugeasTreeException
setPath
public void setPath(String path)
throws AugeasTreeException
- Specified by:
setPath in interface AugeasNode
- Throws:
AugeasTreeException
updateFromParent
public void updateFromParent()
- Description copied from interface:
AugeasNode
- Updates the settings of this node according to the data in the parent.
This method should work recursively.
- Specified by:
updateFromParent in interface AugeasNode
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.