@Singleton public class Node extends Object
CommandAction
tree.Modifier and Type | Field and Description |
---|---|
static String |
CURRENT |
static String |
PARENT |
static String |
PATH_SEPARATOR |
static String |
ROOT |
static String |
SEPARATOR |
Constructor and Description |
---|
Node(String name,
CommandAction action) |
Node(String name,
CommandAction action,
Node parent) |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
CommandAction command) |
Collection<Node> |
children() |
Collection<Node> |
children(String name) |
Node |
find(NodePath path) |
Node |
find(String name) |
Node |
get(String name) |
CommandAction |
getAction() |
String |
getName() |
Node |
getParent() |
String |
getPath() |
int |
hashCode() |
boolean |
isGroup() |
boolean |
isLeaf() |
boolean |
isRoot() |
void |
remove(String name) |
Node |
root() |
String |
toString() |
public static final String ROOT
public static final String PARENT
public static final String CURRENT
public static final String SEPARATOR
public static final String PATH_SEPARATOR
public Node(String name, CommandAction action, Node parent)
public Node(String name, CommandAction action)
public String getName()
public String getPath()
public CommandAction getAction()
public Node getParent()
public boolean isRoot()
public boolean isLeaf()
public boolean isGroup()
public Node root()
public Collection<Node> children()
public Collection<Node> children(String name)
public void add(String name, CommandAction command)
public void remove(String name)
Copyright © 2008-2013 Sonatype. All Rights Reserved.