public class AbstractProcessor extends Object implements Processor
Processor that delegates all methods to its underlying processor.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProcessor(Processor processor)
Constructs a new
AbstractProcessor with an embedded processor. |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(PersistenceHandler persistenceHandler)
Adds an
InputHandler that will be notified. |
Iterable<PersistenceHandler> |
getHandlers()
Returns all registered handlers.
|
boolean |
hasHandler()
Defines if this notifier has at least one
InputHandler to notify. |
void |
notifyAttribute(Attribute attribute)
Notifies all registered handlers of a new attribute.
|
void |
notifyCharacters(String characters)
Notifies all registered handlers of a new set of characters.
|
void |
notifyEndDocument()
Notifies all registered handlers of the end of the current document.
|
void |
notifyEndElement()
Notifies all registered handlers of the end of the current element.
|
void |
notifyReference(Reference reference)
Notifies all registered handlers of a new reference.
|
void |
notifyStartDocument()
Notifies all registered handlers of the start of a document.
|
void |
notifyStartElement(Classifier classifier)
Notifies all registered handlers of the start of a new element.
|
void |
processAttribute(Attribute attribute)
Process an attribute in the current element.
|
void |
processCharacters(String characters)
Process a set of characters.
|
void |
processEndDocument()
Process the end of a document.
|
void |
processEndElement()
Process the end of the current element.
|
void |
processReference(Reference reference)
Process a reference from the current element to another element.
|
void |
processStartDocument()
Process the start of a document.
|
void |
processStartElement(Classifier classifier)
Process the start of an element.
|
protected AbstractProcessor(Processor processor)
AbstractProcessor with an embedded processor.processor - the embedded processorpublic void processStartDocument()
InputHandlerprocessStartDocument in interface InputHandlerInputNotifier.notifyStartDocument()public void processStartElement(Classifier classifier)
InputHandlerprocessStartElement in interface InputHandlerclassifier - the classifier of the new elementInputNotifier.notifyStartElement(Classifier)public void processAttribute(Attribute attribute)
InputHandlerAn attribute is a simple key/value.
processAttribute in interface InputHandlerattribute - the new attributeInputNotifier.notifyAttribute(Attribute)public void processReference(Reference reference)
InputHandlerA reference is an attribute which is link to another element.
processReference in interface InputHandlerreference - the new referenceInputNotifier.notifyReference(Reference)public void processEndElement()
InputHandlerprocessEndElement in interface InputHandlerInputNotifier.notifyEndElement()public void processEndDocument()
InputHandlerprocessEndDocument in interface InputHandlerInputNotifier.notifyEndDocument()public void processCharacters(String characters)
InputHandlerprocessCharacters in interface InputHandlercharacters - the new charactersInputNotifier.notifyCharacters(String)public final void addHandler(PersistenceHandler persistenceHandler)
InputNotifierInputHandler that will be notified.addHandler in interface InputNotifier<PersistenceHandler>persistenceHandler - the handler to addpublic final boolean hasHandler()
InputNotifierInputHandler to notify.hasHandler in interface InputNotifier<PersistenceHandler>true if this notifier has at least one handler to notify.public final Iterable<PersistenceHandler> getHandlers()
InputNotifiergetHandlers in interface InputNotifier<PersistenceHandler>public final void notifyStartDocument()
InputNotifiernotifyStartDocument in interface InputNotifier<PersistenceHandler>InputNotifier.notifyEndDocument(),
InputHandler.processStartDocument()public final void notifyStartElement(Classifier classifier)
InputNotifiernotifyStartElement in interface InputNotifier<PersistenceHandler>classifier - the classifier of the new elementInputNotifier.notifyEndElement(),
InputHandler.processStartElement(Classifier)public final void notifyAttribute(Attribute attribute)
InputNotifiernotifyAttribute in interface InputNotifier<PersistenceHandler>attribute - the new attributeInputHandler.processAttribute(Attribute)public final void notifyReference(Reference reference)
InputNotifiernotifyReference in interface InputNotifier<PersistenceHandler>reference - the new referenceInputHandler.processReference(Reference)public final void notifyCharacters(String characters)
InputNotifiernotifyCharacters in interface InputNotifier<PersistenceHandler>characters - the new charactersInputHandler.processCharacters(String)public final void notifyEndElement()
InputNotifiernotifyEndElement in interface InputNotifier<PersistenceHandler>InputNotifier.notifyStartElement(Classifier),
InputHandler.processEndElement()public final void notifyEndDocument()
InputNotifiernotifyEndDocument in interface InputNotifier<PersistenceHandler>InputNotifier.notifyStartDocument(),
InputHandler.processEndDocument()Copyright © 2013–2017 Atlanmod INRIA LINA Mines Nantes. All rights reserved.