|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxflow.common.DirectedGraph
| Constructor Summary | |
DirectedGraph()
Constructor |
|
DirectedGraph(java.lang.String name)
Creates a new instance of DirectedGraph with name |
|
DirectedGraph(java.lang.String name,
int vers)
Creates a new instance of DirectedGraph with name and version |
|
| Method Summary | |
java.util.List |
getAllNodes()
|
java.lang.String |
getDescription()
|
Node |
getEndNode()
|
int |
getGraphId()
|
java.lang.String |
getName()
|
Node |
getNode(int nodeId)
Gets a node given the node Id |
Node |
getNode(java.lang.String nodeName)
Gets a node given the node name |
java.util.List |
getNodes(java.lang.String nodeType)
|
Node |
getRootNode()
Gets the root node of this graph |
int |
getVersion()
|
static DirectedGraph |
loadByGraphId(int gid)
Retrieves a graph from the Database using graph ID, including all of its nodes. |
void |
loadDB()
Retrieves a graph from the Database, including all of its nodes. |
void |
saveDB()
Save the graph and all its nodes to the Database. |
void |
setDescription(java.lang.String d)
|
void |
setGraphId(int i)
|
void |
setName(java.lang.String n)
|
void |
setRootNode(Node node)
Sets the root node of this graph. |
void |
setVersion(int v)
|
java.lang.String |
toXML()
|
void |
validate()
Validate a DirectedGraph |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DirectedGraph()
public DirectedGraph(java.lang.String name)
name - The name of the graph
public DirectedGraph(java.lang.String name,
int vers)
name - The name of the graphvers - The version of the graph| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String n)
public java.lang.String getDescription()
public void setDescription(java.lang.String d)
public int getVersion()
public void setVersion(int v)
public int getGraphId()
public void setGraphId(int i)
public void setRootNode(Node node)
node - the root nodepublic Node getRootNode()
public void loadDB()
throws XflowException,
java.sql.SQLException
XflowException
java.sql.SQLException
public static DirectedGraph loadByGraphId(int gid)
throws XflowException
XflowException
public void saveDB()
throws java.lang.Exception
java.lang.Exceptionpublic Node getNode(int nodeId)
public void validate()
throws XflowException
XflowException
public java.lang.String toXML()
throws XflowException
XflowExceptionpublic Node getNode(java.lang.String nodeName)
public Node getEndNode()
public java.util.List getNodes(java.lang.String nodeType)
public java.util.List getAllNodes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||