Module org.jgrapht.io
Package org.jgrapht.nio.graphml
Class SimpleGraphMLEventDrivenImporter.GraphMLHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jgrapht.nio.graphml.SimpleGraphMLEventDrivenImporter.GraphMLHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Enclosing class:
SimpleGraphMLEventDrivenImporter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate Stringprivate StringBuilderprivate Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate intprivate intprivate intprivate intprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String qName) voidvoidfindAttribute(String localName, Attributes attributes) private voidprivate voidvoidvoidstartElement(String uri, String localName, String qName, Attributes attributes) voidMethods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDeclMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
GRAPH
- See Also:
-
GRAPH_ID
- See Also:
-
GRAPH_EDGE_DEFAULT
- See Also:
-
NODE
- See Also:
-
NODE_ID
- See Also:
-
EDGE
- See Also:
-
EDGE_ID
- See Also:
-
EDGE_SOURCE
- See Also:
-
EDGE_TARGET
- See Also:
-
ALL
- See Also:
-
KEY
- See Also:
-
KEY_FOR
- See Also:
-
KEY_ATTR_NAME
- See Also:
-
KEY_ATTR_TYPE
- See Also:
-
KEY_ID
- See Also:
-
DEFAULT
- See Also:
-
DATA
- See Also:
-
DATA_KEY
- See Also:
-
insideData
private int insideData -
insideGraph
private int insideGraph -
insideNode
private int insideNode -
currentNode
-
insideEdge
private int insideEdge -
currentEdge
-
currentKey
-
currentDataKey
-
currentDataValue
-
nodeValidKeys
-
edgeValidKeys
-
graphValidKeys
-
-
Constructor Details
-
GraphMLHandler
public GraphMLHandler()
-
-
Method Details
-
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Overrides:
warningin classDefaultHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Overrides:
fatalErrorin classDefaultHandler- Throws:
SAXException
-
findAttribute
-
notifyData
private void notifyData() -
registerKey
private void registerKey()
-