@ParametersAreNonnullByDefault public abstract class AbstractEventListener extends Object implements EventListener
EventListener
.
By default, all methods do nothing.
Constructor and Description |
---|
AbstractEventListener() |
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.
|
public void onInitialize()
Handler
onInitialize
in interface Handler
Handler.onComplete()
,
Notifier.notifyInitialize()
public void onStartElement(ProxyElement element)
Handler
onStartElement
in interface Handler
element
- the element of the new elementHandler.onEndElement()
,
Notifier.notifyStartElement(ProxyElement)
public void onAttribute(ProxyAttribute attribute)
Handler
onAttribute
in interface Handler
attribute
- the new attributeHandler.onStartElement(ProxyElement)
,
Notifier.notifyAttribute(ProxyAttribute)
public void onReference(ProxyReference reference)
Handler
onReference
in interface Handler
reference
- the new referenceHandler.onStartElement(ProxyElement)
,
Notifier.notifyReference(ProxyReference)
public void onEndElement()
Handler
onEndElement
in interface Handler
Handler.onStartElement(ProxyElement)
,
Notifier.notifyEndElement()
public void onComplete()
Handler
onComplete
in interface Handler
Handler.onInitialize()
,
Notifier.notifyComplete()
Copyright © 2013–2019 Atlanmod. All rights reserved.