|
|||||||
| 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_NODES, STORE, UNKKNOWN |
| 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()
|
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 StreamListenerlistener - the next listener in the chain.public StreamListener getNextInChain()
StreamListenerStreamListener.setNextInChain(StreamListener).
getNextInChain in interface StreamListener
public void startElement(Txn transaction,
ElementImpl element,
NodePath path)
StreamListener
startElement in interface StreamListenertransaction - the current transactionelement - the element which has been stored to the dbpath - the current node path
public void attribute(Txn transaction,
AttrImpl attrib,
NodePath path)
StreamListener
attribute in interface StreamListenertransaction - the current transactionattrib - the attribute which has been stored to the dbpath - the current node path
public void endElement(Txn transaction,
ElementImpl element,
NodePath path)
StreamListener
endElement in interface StreamListenertransaction - the current transactionelement - the element which has been stored to the dbpath - the current node path
public void characters(Txn transaction,
TextImpl text,
NodePath path)
StreamListener
characters in interface StreamListenertransaction - the current transactiontext - the text node which has been stored to the db.path - the current node pathpublic abstract IndexWorker getWorker()
getWorker in interface StreamListener
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||