|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Document.IDocumentSerializationListener
Enables listening to events related to XML/JSON serialization of Documents.
| Method Summary | |
|---|---|
void |
beforeSerialization(Document document,
Map<String,?> otherFieldsForSerialization)
Called before a Document gets serialized to XML or JSON. |
| Method Detail |
|---|
void beforeSerialization(Document document,
Map<String,?> otherFieldsForSerialization)
Document gets serialized to XML or JSON. Specific
implementations may want to modify some properties of the document before it
gets serialized
document - the documents being serialized. Note: changes to the document
will not be undone after serialization completes.otherFieldsForSerialization - custom fields that are about to be
serialized. Changes made on this map will not affect the contents of
the document.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||