y.io.graphml.output
Class QueryOutputHandlersEvent
java.lang.Object
java.util.EventObject
y.io.graphml.output.QueryOutputHandlersEvent
- All Implemented Interfaces:
- java.io.Serializable
public final class QueryOutputHandlersEvent
- extends java.util.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-
-
Fields inherited from class java.util.EventObject |
source |
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 |
QueryOutputHandlersEvent
public QueryOutputHandlersEvent(java.lang.Object source,
GraphMLWriteContext context,
java.util.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.