T
- the type of handlerspublic interface InputNotifier<T extends InputHandler>
InputHandler
s of events during an I/O process, such as import or export.InputHandler
Modifier and Type | Method and Description |
---|---|
void |
addHandler(T handler)
Adds an
InputHandler that will be notified. |
Iterable<T> |
getHandlers()
Returns all registered handlers.
|
boolean |
hasHandler()
Defines if this notifier has at least one
InputHandler to notify. |
default void |
notifyAttribute(Attribute attribute)
Notifies all registered handlers of a new attribute.
|
default void |
notifyCharacters(String characters)
Notifies all registered handlers of a new set of characters.
|
default void |
notifyEndDocument()
Notifies all registered handlers of the end of the current document.
|
default void |
notifyEndElement()
Notifies all registered handlers of the end of the current element.
|
default void |
notifyReference(Reference reference)
Notifies all registered handlers of a new reference.
|
default void |
notifyStartDocument()
Notifies all registered handlers of the start of a document.
|
default void |
notifyStartElement(Classifier classifier)
Notifies all registered handlers of the start of a new element.
|
void addHandler(T handler)
InputHandler
that will be notified.handler
- the handler to addboolean hasHandler()
InputHandler
to notify.true
if this notifier has at least one handler to notify.default void notifyStartDocument()
default void notifyStartElement(Classifier classifier)
classifier
- the classifier of the new elementnotifyEndElement()
,
InputHandler.processStartElement(Classifier)
default void notifyAttribute(Attribute attribute)
attribute
- the new attributeInputHandler.processAttribute(Attribute)
default void notifyReference(Reference reference)
reference
- the new referenceInputHandler.processReference(Reference)
default void notifyCharacters(String characters)
characters
- the new charactersInputHandler.processCharacters(String)
default void notifyEndElement()
default void notifyEndDocument()
Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.