@ParametersAreNonnullByDefault public final class NoopProcessor extends AbstractNotifier<Handler> implements Processor
| Constructor and Description |
|---|
NoopProcessor(Collection<Handler> handlers)
Constructs a new
NoopProcessor with the given handlers. |
| Modifier and Type | Method and Description |
|---|---|
void |
onAttribute(ProxyAttribute attribute)
Handles an attribute in the current element.
|
void |
onComplete()
Handles the end of the current task.
|
void |
onEndElement()
Handles the end of the current element.
|
void |
onInitialize()
Handles the start of a task.
|
void |
onReference(ProxyReference reference)
Handles a reference from the current element to another.
|
void |
onStartElement(ProxyElement element)
Handles the start of an element.
|
protected boolean |
supportsMultiTargets()
Returns
true if this notifier allow to notify several handlers. |
addNext, addNext, notifyAttribute, notifyComplete, notifyEndElement, notifyInitialize, notifyReference, notifyStartElementpublic NoopProcessor(Collection<Handler> handlers)
NoopProcessor with the given handlers.handlers - the handlers to notifyprotected boolean supportsMultiTargets()
AbstractNotifiertrue if this notifier allow to notify several handlers.supportsMultiTargets in class AbstractNotifier<Handler>true if this notifier allow to notify several handlerspublic void onInitialize()
throws IOException
HandleronInitialize in interface HandlerIOExceptionHandler.onComplete(),
Notifier.notifyInitialize()public void onStartElement(ProxyElement element) throws IOException
HandleronStartElement in interface Handlerelement - the element of the new elementIOExceptionHandler.onEndElement(),
Notifier.notifyStartElement(ProxyElement)public void onAttribute(ProxyAttribute attribute) throws IOException
HandleronAttribute in interface Handlerattribute - the new attributeIOExceptionHandler.onStartElement(ProxyElement),
Notifier.notifyAttribute(ProxyAttribute)public void onReference(ProxyReference reference) throws IOException
HandleronReference in interface Handlerreference - the new referenceIOExceptionHandler.onStartElement(ProxyElement),
Notifier.notifyReference(ProxyReference)public void onEndElement()
throws IOException
HandleronEndElement in interface HandlerIOExceptionHandler.onStartElement(ProxyElement),
Notifier.notifyEndElement()public void onComplete()
throws IOException
HandleronComplete in interface HandlerIOExceptionHandler.onInitialize(),
Notifier.notifyComplete()Copyright © 2013–2019 Atlanmod. All rights reserved.