|
|||||||
| 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_NODES
Mode for removing some nodes of a document |
static int |
STORE
|
static int |
UNKKNOWN
|
| 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()
|
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 UNKKNOWN
static final int STORE
static final int REMOVE_ALL_NODES
static final int REMOVE_NODES
| Method Detail |
|---|
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 path
void attribute(Txn transaction,
AttrImpl attrib,
NodePath path)
transaction - the current transactionattrib - the attribute which has been stored to the dbpath - the current node path
void endElement(Txn transaction,
ElementImpl element,
NodePath path)
transaction - the current transactionelement - the element which has been stored to the dbpath - the current node path
void 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 pathIndexWorker getWorker()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||