|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.csp.CSPNode
public class CSPNode
All CSPContent
in CSP are logically stored in tree-hierarchy.This class is a
wrapper of the tree node.
Constructor Summary | |
---|---|
CSPNode(int id,
String name,
CSPNode parent)
|
Method Summary | |
---|---|
void |
addChild(CSPNode child)
|
CSPAccessRights |
getAccessRights()
|
List |
getChildren()
List of INode children, in order. |
String |
getContentDefinition()
Each Node has its own Content Definition that keeps information about where CSPContent is stored and its meta-data. |
Object |
getData()
Row data. |
String |
getFullPath()
Returns the fullPath for this CSPNode separated by '/'. |
boolean |
getHasChildren()
|
String |
getId()
Row id. |
String |
getName()
|
CSPNode |
getParent()
Node parent, or null for root. |
boolean |
hasChildren()
|
void |
setAccessRights(CSPAccessRights accessRights)
|
void |
setContentDefinition(String contentDefinition)
|
void |
setId(String id)
|
void |
setName(String name)
|
void |
setParent(CSPNode parent)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CSPNode(int id, String name, CSPNode parent)
Method Detail |
---|
public void setParent(CSPNode parent)
public CSPNode getParent()
INode
getParent
in interface INode
public void setName(String name)
public void setAccessRights(CSPAccessRights accessRights)
public String getName()
public void addChild(CSPNode child)
public List getChildren()
INode
INode
children, in order.
Empty list (non-null) for leaf nodes.
getChildren
in interface INode
public boolean hasChildren()
public boolean getHasChildren()
public String toString()
toString
in class Object
public void setId(String id)
public String getId()
INode
getId
in interface INode
public Object getData()
INode
getData
in interface INode
public void setContentDefinition(String contentDefinition)
public String getContentDefinition()
CSPContent
is stored and its meta-data.
public CSPAccessRights getAccessRights()
public String getFullPath()
CSPNode
separated by '/'.
Example:
If the following hierarchy is present:
CSPNode with name = rootNode CSPNode with name = node1 CSPNode with name = node21The call to
CSPNode.getFullPath()
will return - /rootNode/node1/node21
CSPNode
separated by '/'
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |