public class PathHelper
extends java.lang.Object
Constructor and Description |
---|
PathHelper()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.util.List<java.lang.String>> |
findPath()
Generate path nodes.
|
Path |
generatePath()
Generate Path object.
|
void |
setPathName(java.lang.String name)
Set the path name.
|
void |
setRegularExpression(java.util.List<java.lang.String> rgPattern)
Set the Regular Expression.
|
void |
setStartEndNodes(java.lang.String sqlQuery,
java.util.LinkedList<Node> columns)
Method to find and set candidates nodes to be start and end node of path
based on regular expression.
|
public PathHelper() throws java.sql.SQLException, java.lang.ClassNotFoundException
java.sql.SQLException
java.lang.ClassNotFoundException
public void setPathName(java.lang.String name)
name
- String contains the name of path node.public void setStartEndNodes(java.lang.String sqlQuery, java.util.LinkedList<Node> columns) throws java.sql.SQLException
sqlQuery
- String SQL query that indicates the start and end nodes of
path node.columns
- Name of columns in view that contains start and end nodes.java.sql.SQLException
public void setRegularExpression(java.util.List<java.lang.String> rgPattern)
rgPattern
- list of string contains pattern.(separated by 'SPACE')public java.util.ArrayList<java.util.List<java.lang.String>> findPath() throws java.sql.SQLException
java.sql.SQLException
public Path generatePath() throws java.lang.NumberFormatException, java.sql.SQLException
java.lang.NumberFormatException
java.sql.SQLException