|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.directory.ResourceNode
public class ResourceNode
| Field Summary | |
|---|---|
java.util.Map<java.lang.String,ResourceNode> |
children
|
ResourceNode |
parent
|
| Constructor Summary | |
|---|---|
ResourceNode(Resource resource)
|
|
| Method Summary | |
|---|---|
ResourceNode |
addChild(Resource child)
Utility method that creates a new resource node from the resource passed in and then adds it as a child. |
void |
addChild(ResourceNode childNode)
Adds a child node to this node |
int |
compareTo(java.lang.Object comp)
|
java.util.Map<java.lang.String,ResourceNode> |
getChildren()
Return a map of the current children of this node or an empty map. |
ResourceType |
getChildType()
|
java.lang.String |
getKey()
|
int |
getNumberOfChildren()
Returns the number of immediate children of this Node |
ResourceNode |
getParent()
|
Resource |
getResource()
|
ResourceNode |
getRoot()
|
ResourceType |
getType()
|
boolean |
isContainer()
|
boolean |
isExecutable()
|
void |
removeChild(java.lang.String key)
Remove a child by key |
void |
setChildren(java.util.Map<java.lang.String,ResourceNode> children)
|
void |
setParent(ResourceNode parent)
|
void |
setResource(Resource resource)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.Map<java.lang.String,ResourceNode> children
public ResourceNode parent
| Constructor Detail |
|---|
public ResourceNode(Resource resource)
resource - | Method Detail |
|---|
public Resource getResource()
public ResourceType getType()
public ResourceType getChildType()
public java.lang.String getKey()
public boolean isContainer()
public boolean isExecutable()
public java.util.Map<java.lang.String,ResourceNode> getChildren()
public void setChildren(java.util.Map<java.lang.String,ResourceNode> children)
children - public int getNumberOfChildren()
public void addChild(ResourceNode childNode)
childNode - public ResourceNode addChild(Resource child)
child -
public void removeChild(java.lang.String key)
key - public java.lang.String toString()
toString in class java.lang.Objectpublic ResourceNode getParent()
public void setParent(ResourceNode parent)
public ResourceNode getRoot()
public void setResource(Resource resource)
public int compareTo(java.lang.Object comp)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||