public class XGMMLContentHandler extends XMLToGraphHandler
| Constructor and Description |
|---|
XGMMLContentHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
endEdgeElement()
Processes <edge> elements.
|
void |
endNodeElement() |
String |
getEdgeElementName() |
String |
getVertexElementName() |
void |
instantiateEdge() |
void |
instantiateGraph() |
void |
instantiateVertex() |
void |
processEdgeAttElement(Attributes attribs)
Classes extending this abstract class may need to override this method.
|
void |
processGraphicsAttElement(Attributes attribs) |
void |
processNodeAttElement(Attributes attribs)
Classes extending this abstract class may need to override this method.
|
void |
startAttElement(Attributes attribs)
Process <att> element.
|
void |
startCenterElement(Attributes attribs) |
void |
startEdgeElement(Attributes attribs) |
void |
startGraphElement(Attributes attribs)
Detects if the graph is directed or not.
|
void |
startGraphicsElement(Attributes attribs) |
void |
startLineElement(Attributes attribs) |
void |
startNodeElement(Attributes attribs) |
void |
startPointElement(Attributes attribs) |
endElement, getGraph, getVisualGraph, mapIDToVertex, startDocument, startElementcharacters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic String className
public void instantiateGraph()
throws Exception
instantiateGraph in class XMLToGraphHandlerExceptionpublic void instantiateVertex()
throws Exception
instantiateVertex in class XMLToGraphHandlerExceptionpublic void startGraphElement(Attributes attribs)
public void startAttElement(Attributes attribs)
public void startNodeElement(Attributes attribs)
public void startEdgeElement(Attributes attribs)
public void endEdgeElement()
throws Exception
Besides checking for the weight attribute to determine if it is a weighted edge, it also checks the type of graph that was created. Hence, if the graph is an instance of DirectedGraph, then the type of Edge created is either a DirectedWeightedEdgeImpl or a DirectedEdgeImpl.
Exceptionpublic void startGraphicsElement(Attributes attribs) throws Exception
Exceptionpublic void startCenterElement(Attributes attribs) throws Exception
Exceptionpublic void startLineElement(Attributes attribs) throws Exception
Exceptionpublic void startPointElement(Attributes attribs) throws Exception
Exceptionpublic void instantiateEdge()
throws Exception
instantiateEdge in class XMLToGraphHandlerExceptionpublic void processNodeAttElement(Attributes attribs)
When overriding this method, ensure that you call this method via
super.processNodeElement( attribs );
so that the internal variable is set.
public void processEdgeAttElement(Attributes attribs)
When overriding this method, ensure that you call this method via
super.processNodeElement( attribs );
so that the internal variable is set.
public void processGraphicsAttElement(Attributes attribs)
public String getVertexElementName()
getVertexElementName in class XMLToGraphHandlerpublic String getEdgeElementName()
getEdgeElementName in class XMLToGraphHandlerCopyright © 2019 JULIE Lab, Germany. All rights reserved.