y.io.graphml.output
Class WriteEvent
java.lang.Object
java.util.EventObject
y.io.graphml.output.WriteEvent
- All Implemented Interfaces:
- java.io.Serializable
public class WriteEvent
- extends java.util.EventObject
This is the event argument that is used by the WriteEventListener interface
that can be queried from the GraphMLWriteContext.getWriteEvents() property.
This class holds a reference to the getContext() and the
getItem() that is currently being written.
- See Also:
- Serialized Form
-
-
| Fields inherited from class java.util.EventObject |
source |
|
Method Summary |
GraphMLWriteContext |
getContext()
Gets the context that is being used for writing. |
java.lang.Object |
getItem()
Gets the item that is currently being written or null if nothing is applicable. |
| 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 |
WriteEvent
public WriteEvent(java.lang.Object source,
GraphMLWriteContext context,
java.lang.Object item)
- Initializes a new instance of the
WriteEvent class.
- Parameters:
source - The source where the event was raised.context - The context to assign to getContext().item - The item to assign to getItem().
getContext
public GraphMLWriteContext getContext()
- Gets the context that is being used for writing.
- Returns:
- The context.
getItem
public java.lang.Object getItem()
- Gets the item that is currently being written or
null if nothing is applicable.
- Returns:
- The item being written.