|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgdl.base.ContentParser
public class ContentParser
A simple XML parser to transform XML input into da 2D adjacence matrix and prepare a list of nodes and node ids Furthermode, a tree model for the content JTree is initialised based upon the source.
Constructor Summary | |
---|---|
ContentParser(ParsingManager pm,
java.lang.Object sizeConfigSet,
ConnectionTypeSet connectionSet,
java.lang.String connectionTypeAttribute)
|
Method Summary | |
---|---|
int[][] |
getAdMatrix()
This function can be called to obtain the adjacence matrix of the current graph |
java.util.LinkedList |
getAllNodeIDs()
returns a list of all nodes IDs that could be parsed. |
java.util.LinkedList |
getAllNodes()
returns a list of all nodes that could be parsed. |
void |
parse()
invokes the parsing process: the matrix is stored in member variables, the list of all Nodes is initialised and prepared |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentParser(ParsingManager pm, java.lang.Object sizeConfigSet, ConnectionTypeSet connectionSet, java.lang.String connectionTypeAttribute)
pm
- the parsing manager that hold several parsing and wizard input informationsizeConfigSet
- the size config set to use initially when initializing ContentNode objectsconnectionSet
- the currently active connection configurationconnectionTypeAttribute
- the xml attrbiute that should be interpreted as the type of connectionMethod Detail |
---|
public void parse()
public java.util.LinkedList getAllNodes()
public int[][] getAdMatrix()
public java.util.LinkedList getAllNodeIDs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |