Class XGMMLContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.xgmml.XGMMLHandler
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.xgmml.XGMMLContentHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class XGMMLContentHandler extends XGMMLHandler
Custom XGMMLHandler for parsing an XGMML input source using SAX2.
- Version:
- $Revision$
- Author:
- Burkhard Sell
-
Constructor Summary
Constructors Constructor Description XGMMLContentHandler()
Constructs a new handler instance. -
Method Summary
Modifier and Type Method Description void
endEdgeElement()
Dynamically invoked bydelegator handler
.void
endNodeElement()
Dynamically invoked bydelegator handler
.String
getEdgeElementName()
String
getNodeElementName()
void
instantiateEdge()
Instantiates a new edge and add it to teh graph.void
instantiateGraph()
Instantiates a new graph.void
instantiateNode()
Instantiates a new node and add it to teh graph.void
processEdgeAttElement(Attributes attribs)
Not yet implementedvoid
processGraphicsAttElement(Attributes attribs)
Not yet implementedvoid
processNodeAttElement(Attributes attribs)
Dynamically invoked bydelegator handler
.void
startAttElement(Attributes attribs)
Dynamically invoked bydelegator handler
.void
startCenterElement(Attributes attribs)
Dynamically invoked bydelegator handler
.void
startEdgeElement(Attributes attribs)
Dynamically invoked bydelegator handler
.void
startGraphElement(Attributes attribs)
Dynamically invoked bydelegator handler
.void
startGraphicsElement(Attributes attribs)
Dynamically invoked bydelegator handler
.void
startLineElement(Attributes attribs)
void
startNodeElement(Attributes attribs)
Dynamically invoked bydelegator handler
.void
startPointElement(Attributes attribs)
Methods inherited from class de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.xgmml.XGMMLHandler
endElement, getGraph, startDocument, startElement
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
XGMMLContentHandler
public XGMMLContentHandler()Constructs a new handler instance.
-
-
Method Details
-
instantiateGraph
Instantiates a new graph. Currently only one graph per file is supported- Specified by:
instantiateGraph
in classXGMMLHandler
- Throws:
Exception
- if the graph could not be created.
-
instantiateNode
Instantiates a new node and add it to teh graph.- Specified by:
instantiateNode
in classXGMMLHandler
- Throws:
Exception
- if the node could not be created.
-
startGraphElement
Dynamically invoked bydelegator handler
. -
startAttElement
Dynamically invoked bydelegator handler
. -
startNodeElement
Dynamically invoked bydelegator handler
. -
endNodeElement
Dynamically invoked bydelegator handler
.- Throws:
Exception
-
startEdgeElement
Dynamically invoked bydelegator handler
. -
endEdgeElement
Dynamically invoked bydelegator handler
.- Throws:
Exception
-
startGraphicsElement
Dynamically invoked bydelegator handler
.- Throws:
Exception
-
startCenterElement
Dynamically invoked bydelegator handler
.- Throws:
Exception
-
startLineElement
- Throws:
Exception
-
startPointElement
- Throws:
Exception
-
instantiateEdge
Instantiates a new edge and add it to teh graph.- Specified by:
instantiateEdge
in classXGMMLHandler
- Throws:
Exception
- if the node could not be created.
-
processNodeAttElement
Dynamically invoked bydelegator handler
. -
processEdgeAttElement
Not yet implemented- Parameters:
attribs
-
-
processGraphicsAttElement
Not yet implemented- Parameters:
attribs
-
-
getNodeElementName
- Specified by:
getNodeElementName
in classXGMMLHandler
- Returns:
XGMMLConstants.NODE_ELEMENT_LITERAL
-
getEdgeElementName
- Specified by:
getEdgeElementName
in classXGMMLHandler
- Returns:
XGMMLConstants.EDGE_ELEMENT_LITERAL
-