Search this API

y.io.graphml.input
Class ParseEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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
 

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ParseEvent(java.lang.Object source, GraphMLParseContext context, org.w3c.dom.Element element)
          Initializes a new instance of the ParseEvent class.
 
Method Summary
 GraphMLParseContext getContext()
          Gets the context that is being used for parsing.
 org.w3c.dom.Element getElement()
          Gets the XML element that is currently parsed.
 
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
 

Constructor Detail

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().
Method Detail

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..

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.