|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteasik.sketch.util.Export.Components.ExportPath
public class ExportPath
Class representing a path from the sketch. Contains references to all edges associated in the path in a LinkedList. Should only be used for exportation to a database. Does not provide functionality for graphical display.
Field Summary | |
---|---|
private java.lang.String |
_domain
The domain of this path |
private java.util.LinkedList<ExportEdge> |
_edges
The edges involved in this path |
private java.lang.String |
_name
The name of this path |
Constructor Summary | |
---|---|
ExportPath(java.lang.String n,
java.lang.String d)
Constructor to initialize linkedlist of edges |
Method Summary | |
---|---|
void |
addEdge(ExportEdge e)
Adds an edge to the path. |
static java.lang.String |
getAllTablesString(ExportPath path)
Determines the tables along a path, and formats them into a string. |
java.lang.String |
getCoDomain()
Returns the codomain of the last edge in the edge collection of the path, and thus the codomain of the path. |
static java.lang.String |
getConditions(ExportPath path)
Gets the conditions for a path. |
static java.lang.String |
getDelConditions(ExportPath path)
Determines the initial condition, as required by a BEFORE DELETE procedure. |
java.lang.String |
getDomain()
Returns the domain of the first edge in the edge collection of the path, and thus the domain of the path. |
java.util.LinkedList<ExportEdge> |
getEdges()
Getter method for the linked list of edges contained in this path. |
java.lang.String |
getName()
Returns the unique name of this path, created by the edges contained in this path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.LinkedList<ExportEdge> _edges
private java.lang.String _name
private java.lang.String _domain
Constructor Detail |
---|
public ExportPath(java.lang.String n, java.lang.String d)
n
- The name of the pathd
- The domain of the pathMethod Detail |
---|
public java.util.LinkedList<ExportEdge> getEdges()
public void addEdge(ExportEdge e)
e
- The edge to be added to the end of the pathpublic java.lang.String getName()
public java.lang.String getDomain()
public java.lang.String getCoDomain()
public static java.lang.String getAllTablesString(ExportPath path)
path
- The path for which the tables must be determined
public static java.lang.String getDelConditions(ExportPath path)
path
- The path for which the delete conditions need to be determined
public static java.lang.String getConditions(ExportPath path)
path
- The path for which an element needs to be deleted from the codomain.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |