|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
XMLConvertorFilter acts as a filter on the XMLData produced by the XMLConvertors. On output the filters are run after the convertors. On input the filters are run before. Unlike convertors, all filters are called.
The interface returns data in the XMLData format, which is a minimal DOM structure. Each convertor should only return the XMLData structure for its own internal data passed on the passed in object. If the object contains references to other objects that have their own XML convertors, the content field should be set to the object.
Typically, this means that an XMLData instance has a number of children, each of which have either String or object content. However, if an object needs to create a more complex structure it can do.
Method Summary | |
boolean |
filterChildren()
Should the children of the XMLData be filtered as well? |
void |
filterInputXMLDataOnEndTag(XMLConvertorContext context,
ModelElement element,
XMLData data)
Filter the XMLData representation of an object on input when the end tag is reached. |
void |
filterInputXMLDataOnStartTag(XMLConvertorContext context,
XMLData data)
Filter the XMLData representation of an object on input. |
boolean |
filterOutputXMLData(XMLConvertorContext context,
XMLData data)
Filter the XMLData representation of an object. |
Method Detail |
public boolean filterChildren()
public boolean filterOutputXMLData(XMLConvertorContext context, XMLData data)
context
- the context for the outputdata
- the XMLData to filter
public void filterInputXMLDataOnStartTag(XMLConvertorContext context, XMLData data)
context
- the context for the outputdata
- the XMLData to filterpublic void filterInputXMLDataOnEndTag(XMLConvertorContext context, ModelElement element, XMLData data)
context
- The contect for the inputdata
- The xml data to filter
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |