y.io.graphml.output
Class QueryOutputHandlersEvent
java.lang.Object
java.util.EventObject
y.io.graphml.output.QueryOutputHandlersEvent
- All Implemented Interfaces:
- Serializable
public final class QueryOutputHandlersEvent
- extends EventObject
Event argument implementation that is used by the
GraphMLHandler.fireQueryOutputHandlersEvent(QueryOutputHandlersEvent)
event.
These event arguments can be used to addOutputHandler(y.io.graphml.output.OutputHandler,y.io.graphml.KeyScope)
OutputHandler
implementations to the GraphMLWriter dynamically at the time of writing.
- See Also:
GraphMLHandler,
Serialized Form-
-
QueryOutputHandlersEvent
public QueryOutputHandlersEvent(Object source,
GraphMLWriteContext context,
List handlers)
- Initializes a new instance of the
QueryOutputHandlersEvent class.
- Parameters:
source - The origin of the eventcontext - The context to assign to the getContext() property.handlers - The list of handlers to which the addOutputHandler(y.io.graphml.output.OutputHandler,y.io.graphml.KeyScope) method will
add the added instances.
addOutputHandler
public void addOutputHandler(OutputHandler handler,
KeyScope scope)
- Adds the given output handler to the set of registered output handlers for the given scope.
- Parameters:
handler - The handler to add.scope - The scope to use for the handler.
getContext
public GraphMLWriteContext getContext()
- Gets the context for which the handlers are queried.
- Returns:
- The context of the query.