@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, notifyStartElement
public NoopProcessor(Collection<Handler> handlers)
NoopProcessor
with the given handlers
.handlers
- the handlers to notifyprotected boolean supportsMultiTargets()
AbstractNotifier
true
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
Handler
onInitialize
in interface Handler
IOException
Handler.onComplete()
,
Notifier.notifyInitialize()
public void onStartElement(ProxyElement element) throws IOException
Handler
onStartElement
in interface Handler
element
- the element of the new elementIOException
Handler.onEndElement()
,
Notifier.notifyStartElement(ProxyElement)
public void onAttribute(ProxyAttribute attribute) throws IOException
Handler
onAttribute
in interface Handler
attribute
- the new attributeIOException
Handler.onStartElement(ProxyElement)
,
Notifier.notifyAttribute(ProxyAttribute)
public void onReference(ProxyReference reference) throws IOException
Handler
onReference
in interface Handler
reference
- the new referenceIOException
Handler.onStartElement(ProxyElement)
,
Notifier.notifyReference(ProxyReference)
public void onEndElement() throws IOException
Handler
onEndElement
in interface Handler
IOException
Handler.onStartElement(ProxyElement)
,
Notifier.notifyEndElement()
public void onComplete() throws IOException
Handler
onComplete
in interface Handler
IOException
Handler.onInitialize()
,
Notifier.notifyComplete()
Copyright © 2013–2019 Atlanmod. All rights reserved.