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 String
private String
private StringBuilder
private String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private int
private int
private int
private int
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String uri, String localName, String qName) void
void
findAttribute
(String localName, Attributes attributes) private void
private void
void
void
startElement
(String uri, String localName, String qName, Attributes attributes) void
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classDefaultHandler
- Throws:
SAXException
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
- Throws:
SAXException
-
findAttribute
-
notifyData
private void notifyData() -
registerKey
private void registerKey()
-