public interface Source
An source is something that produces graph events (attributes and elements), but does not contain a graph instance.
Modifier and Type | Method and Description |
---|---|
void |
addAttributeSink(AttributeSink sink)
Add a sink for attribute events only.
|
void |
addElementSink(ElementSink sink)
Add a sink for elements events only.
|
void |
addSink(Sink sink)
Add a sink for all graph events (attributes and graph elements) coming from
this source.
|
void |
clearAttributeSinks()
Remove all listener attribute sinks.
|
void |
clearElementSinks()
Remove all listener element sinks.
|
void |
clearSinks()
Remove all listener sinks.
|
void |
removeAttributeSink(AttributeSink sink)
Remove an attribute sink.
|
void |
removeElementSink(ElementSink sink)
Remove an element sink.
|
void |
removeSink(Sink sink)
Remove a sink.
|
void addSink(Sink sink)
sink
- The sink to register.void removeSink(Sink sink)
sink
- The sink to remove, if it does not exist, this is ignored
silently.void addAttributeSink(AttributeSink sink)
sink
- The sink to register.void removeAttributeSink(AttributeSink sink)
sink
- The sink to remove, if it does not exist, this is ignored
silently.void addElementSink(ElementSink sink)
sink
- The sink to register.void removeElementSink(ElementSink sink)
sink
- The sink to remove, if it does not exist, this is ignored
silently.void clearElementSinks()
void clearAttributeSinks()
void clearSinks()