|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.indexing.AbstractStreamListener
public abstract class AbstractStreamListener
Default implementation of a StreamListener. By default forwards all events to the next listener in the chain (if there is any). Overwrite methods to handle events (but don't forget to call the super method as well).
Field Summary |
---|
Fields inherited from interface org.exist.indexing.StreamListener |
---|
REMOVE_ALL_NODES, REMOVE_SOME_NODES, STORE, UNKNOWN |
Constructor Summary | |
---|---|
AbstractStreamListener()
|
Method Summary | |
---|---|
void |
attribute(Txn transaction,
AttrImpl attrib,
NodePath path)
An attribute has been stored. |
void |
characters(Txn transaction,
TextImpl text,
NodePath path)
A text node has been stored. |
void |
endElement(Txn transaction,
ElementImpl element,
NodePath path)
Processed the closing tag of an element. |
StreamListener |
getNextInChain()
Returns the next stream listener in the chain. |
abstract IndexWorker |
getWorker()
Retunrs the IndexWorker that owns this listener. |
void |
setNextInChain(StreamListener listener)
Set the next stream listener in the chain. |
void |
startElement(Txn transaction,
ElementImpl element,
NodePath path)
Processed the opening tag of an element. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractStreamListener()
Method Detail |
---|
public void setNextInChain(StreamListener listener)
StreamListener
setNextInChain
in interface StreamListener
listener
- the next listener in the chain.public StreamListener getNextInChain()
StreamListener
StreamListener.setNextInChain(StreamListener)
.
getNextInChain
in interface StreamListener
public void startElement(Txn transaction, ElementImpl element, NodePath path)
StreamListener
startElement
in interface StreamListener
transaction
- the current transactionelement
- the element which has been stored to the dbpath
- the current node pathpublic void attribute(Txn transaction, AttrImpl attrib, NodePath path)
StreamListener
attribute
in interface StreamListener
transaction
- the current transactionattrib
- the attribute which has been stored to the dbpath
- the current node pathpublic void endElement(Txn transaction, ElementImpl element, NodePath path)
StreamListener
endElement
in interface StreamListener
transaction
- the current transactionelement
- the element which has been stored to the dbpath
- the current node pathpublic void characters(Txn transaction, TextImpl text, NodePath path)
StreamListener
characters
in interface StreamListener
transaction
- the current transactiontext
- the text node which has been stored to the db.path
- the current node pathpublic abstract IndexWorker getWorker()
StreamListener
getWorker
in interface StreamListener
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |