y.io.graphml.output
Class WriteEvent
java.lang.Object
java.util.EventObject
y.io.graphml.output.WriteEvent
- All Implemented Interfaces:
- Serializable
public class WriteEvent
- extends 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
-
-
WriteEvent
public WriteEvent(Object source,
GraphMLWriteContext context,
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 Object getItem()
- Gets the item that is currently being written or
null if nothing is applicable.
- Returns:
- The item being written.