public final class QueryOutputHandlersEventArgs extends Object implements IEventArgs
QueryOutputHandlers
event.
These event arguments can be used to add more IOutputHandler
implementations to the GraphMLWriter
dynamically at the time of writing, by adding them to the Handlers
collection.
GraphMLIOHandler
EMPTY
Constructor and Description |
---|
QueryOutputHandlersEventArgs(IWriteContext context,
KeyScope scope)
Initializes a new instance of the
QueryOutputHandlersEventArgs class. |
Modifier and Type | Method and Description |
---|---|
void |
addOutputHandler(IOutputHandler handler)
Adds the given output handler to the set of registered output handlers for the given scope.
|
IWriteContext |
getContext()
Gets the context for which the handlers are queried.
|
IEnumerable<IOutputHandler> |
getHandlers()
The
IOutputHandler s that have been registered on this event argument instance so far. |
KeyScope |
getScope()
The scope where the handlers should be added.
|
public QueryOutputHandlersEventArgs(IWriteContext context, KeyScope scope)
QueryOutputHandlersEventArgs
class.context
- The context to assign to the Context
property.scope
- The scope where the handlers should be added.public final void addOutputHandler(IOutputHandler handler)
handler
- The handler to add.public final IWriteContext getContext()
public final IEnumerable<IOutputHandler> getHandlers()
IOutputHandler
s that have been registered on this event argument instance so far.public final KeyScope getScope()