public class EtcdDirectoryNode extends Object
| Constructor and Description |
|---|
EtcdDirectoryNode() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCreatedIndex()
Returns the created index value.
|
String |
getKey()
Returns the key for this node.
|
int |
getModifiedIndex()
Returns the modified index value.
|
String |
getName()
Returns the name of this node.
|
List<EtcdDirectoryNode> |
getNodes()
Returns a list of the child nodes of this node.
|
String |
getValue()
Returns the value of this node.
|
boolean |
isDir()
Determines if the current node is a directory.
|
void |
setCreatedIndex(int createdIndex)
Sets the created index value.
|
void |
setDir(boolean dir)
Sets this node as a directory node.
|
void |
setKey(String key)
Sets the key for this node.
|
void |
setModifiedIndex(int modifiedIndex)
Sets the modified index value.
|
void |
setNodes(List<EtcdDirectoryNode> nodes)
Sets the list of child nodes.
|
void |
setValue(String value)
Sets the value of this node.
|
public boolean isDir()
public void setDir(boolean dir)
dir - true if this is a directorypublic List<EtcdDirectoryNode> getNodes()
public void setNodes(List<EtcdDirectoryNode> nodes)
nodes - list of nodespublic int getModifiedIndex()
public void setModifiedIndex(int modifiedIndex)
modifiedIndex - modified indexpublic int getCreatedIndex()
public void setCreatedIndex(int createdIndex)
createdIndex - created indexpublic String getValue()
public void setValue(String value)
value - node valuspublic String getKey()
public void setKey(String key)
key - the key valuepublic String getName()