y.io.graphml.input
Class ParseEvent
java.lang.Object
java.util.EventObject
y.io.graphml.input.ParseEvent
- All Implemented Interfaces:
- Serializable
public class ParseEvent
- extends 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
-
-
ParseEvent
public ParseEvent(Object source,
GraphMLParseContext context,
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 Element getElement()
- Gets the XML element that is currently parsed.
- Returns:
- The XML element that is currently parsed..