|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--venice.ModelStorage
ModelStorage provides a datastructure and operations for a datastructure containing a GXL-model.
Field Summary | |
private java.util.LinkedList |
edges
|
private java.util.HashMap |
mElementIndex
|
private java.util.HashMap |
mRelationshipIndex
|
private java.util.LinkedList |
nodes
|
Constructor Summary | |
ModelStorage()
|
Method Summary | |
void |
addElementToIndex(MElement inElement)
|
void |
addRelationshipToIndex(MRelationship inRel)
|
private void |
checkRelationships()
|
void |
clear()
This method is used to clear the existing data from this GXL-model. |
void |
createIndex()
Creates index for Modelstorage. |
java.util.LinkedList |
getAllRelationships()
Returns all relationships in the model |
java.util.LinkedList |
getChildren(java.lang.String inId)
Returns the parent MElement of a certain MElement |
java.util.LinkedList |
getDependencies(java.lang.String inId)
Returns the dependencies of a certain MElement |
MElement |
getElement(java.lang.String inId)
Returns the MElement with inId as id. |
java.util.LinkedList |
getGeneralizations(java.lang.String inId)
Returns the generalizations of a certain MElement |
java.util.LinkedList |
getIncomingRelationships(java.lang.String inElemId)
Returns all relationships entering an MElement. |
MElement |
getParent(java.lang.String inId)
Returns the parent MElement of a certain MElement |
java.util.LinkedList |
getRealizations(java.lang.String inId)
Returns the realizations of a certain MElement |
MRelationship |
getRelationship(java.lang.String inId)
|
java.util.LinkedList |
getRootNodes()
Returns the root nodes of the model. |
private java.lang.String |
GXLEnd()
|
private java.lang.String |
GXLStart()
|
void |
loadGXL(java.io.InputStream inStream)
This method is used to load a GXL-model from a given InputStream. |
void |
writeGXL(java.io.OutputStream ioStream)
This method is used to write the information from the model to a OutputStream |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.LinkedList nodes
private java.util.LinkedList edges
private java.util.HashMap mElementIndex
private java.util.HashMap mRelationshipIndex
Constructor Detail |
public ModelStorage()
Method Detail |
public void loadGXL(java.io.InputStream inStream) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
inStream
- is a java.io.InputStream containing the GXL-model.public void writeGXL(java.io.OutputStream ioStream) throws java.io.IOException
private void checkRelationships()
private java.lang.String GXLStart()
private java.lang.String GXLEnd()
public void clear()
public java.util.LinkedList getAllRelationships()
public MElement getParent(java.lang.String inId)
inId
- Id of the child which parent is returned.public java.util.LinkedList getChildren(java.lang.String inId)
inId
- Id of the parent which children are returned.public MElement getElement(java.lang.String inId)
inId
- Id of the MElement which is required.public MRelationship getRelationship(java.lang.String inId)
public java.util.LinkedList getRootNodes()
public java.util.LinkedList getDependencies(java.lang.String inId)
public java.util.LinkedList getRealizations(java.lang.String inId)
public java.util.LinkedList getGeneralizations(java.lang.String inId)
public void addElementToIndex(MElement inElement)
public void addRelationshipToIndex(MRelationship inRel)
public void createIndex()
public java.util.LinkedList getIncomingRelationships(java.lang.String inElemId)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |