|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamListener
Callback interface which receives index events. StreamListeners are chained; events should be forwarded to the next listener in the chain (if there is any).
Field Summary | |
---|---|
static int |
REMOVE_ALL_NODES
Mode for removing all the nodes of a document |
static int |
REMOVE_SOME_NODES
Mode for removing some nodes of a document |
static int |
STORE
Mode for storing nodes of a document |
static int |
UNKNOWN
Undefined mode |
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. |
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. |
Field Detail |
---|
static final int UNKNOWN
static final int STORE
static final int REMOVE_ALL_NODES
static final int REMOVE_SOME_NODES
Method Detail |
---|
IndexWorker getWorker()
void setNextInChain(StreamListener listener)
listener
- the next listener in the chain.StreamListener getNextInChain()
setNextInChain(StreamListener)
.
void startElement(Txn transaction, ElementImpl element, NodePath path)
transaction
- the current transactionelement
- the element which has been stored to the dbpath
- the current node pathvoid attribute(Txn transaction, AttrImpl attrib, NodePath path)
transaction
- the current transactionattrib
- the attribute which has been stored to the dbpath
- the current node pathvoid characters(Txn transaction, TextImpl text, NodePath path)
transaction
- the current transactiontext
- the text node which has been stored to the db.path
- the current node pathvoid endElement(Txn transaction, ElementImpl element, NodePath path)
transaction
- the current transactionelement
- the element which has been stored to the dbpath
- the current node path
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |