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 voidendEdgeElement()Dynamically invoked bydelegator handler.voidendNodeElement()Dynamically invoked bydelegator handler.StringgetEdgeElementName()StringgetNodeElementName()voidinstantiateEdge()Instantiates a new edge and add it to teh graph.voidinstantiateGraph()Instantiates a new graph.voidinstantiateNode()Instantiates a new node and add it to teh graph.voidprocessEdgeAttElement(Attributes attribs)Not yet implementedvoidprocessGraphicsAttElement(Attributes attribs)Not yet implementedvoidprocessNodeAttElement(Attributes attribs)Dynamically invoked bydelegator handler.voidstartAttElement(Attributes attribs)Dynamically invoked bydelegator handler.voidstartCenterElement(Attributes attribs)Dynamically invoked bydelegator handler.voidstartEdgeElement(Attributes attribs)Dynamically invoked bydelegator handler.voidstartGraphElement(Attributes attribs)Dynamically invoked bydelegator handler.voidstartGraphicsElement(Attributes attribs)Dynamically invoked bydelegator handler.voidstartLineElement(Attributes attribs)voidstartNodeElement(Attributes attribs)Dynamically invoked bydelegator handler.voidstartPointElement(Attributes attribs)Methods inherited from class de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.xgmml.XGMMLHandler
endElement, getGraph, startDocument, startElementMethods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
instantiateGraphin classXGMMLHandler- Throws:
Exception- if the graph could not be created.
-
instantiateNode
Instantiates a new node and add it to teh graph.- Specified by:
instantiateNodein 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:
instantiateEdgein 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:
getNodeElementNamein classXGMMLHandler- Returns:
XGMMLConstants.NODE_ELEMENT_LITERAL
-
getEdgeElementName
- Specified by:
getEdgeElementNamein classXGMMLHandler- Returns:
XGMMLConstants.EDGE_ELEMENT_LITERAL
-