y.io.graphml.input
Class ParseEvent
java.lang.Object
java.util.EventObject
y.io.graphml.input.ParseEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ParseEvent
- extends java.util.EventObject
This is the event argument that is used by the ParseEventListener
interface
that can be queried from the GraphMLParseContext.getParseEvents()
property.
This class holds a reference to the getContext()
and the
getElement()
that is currently being parsed.
- See Also:
- Serialized Form
-
-
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ParseEvent
public ParseEvent(java.lang.Object source,
GraphMLParseContext context,
org.w3c.dom.Element element)
- Initializes a new instance of the
ParseEvent
class.
- Parameters:
source
- The source where this event was raised.context
- The context to assign to getContext()
.element
- The XML element to assign to getElement()
.
getContext
public GraphMLParseContext getContext()
- Gets the context that is being used for parsing.
- Returns:
- The context.
getElement
public org.w3c.dom.Element getElement()
- Gets the XML element that is currently parsed.
- Returns:
- The XML element that is currently parsed..