Interface ElementParser<T>
- All Known Implementing Classes:
AbstractElementParser,ItemListElementParser,OpenSearchElementParserImpl,TokenizedElementParser
public interface ElementParser<T>
Implementations parse the specified element to generate fields for the document.
- Author:
- avasquez
-
Method Summary
-
Method Details
-
parse
boolean parse(org.dom4j.Element element, String fieldName, String parentFieldName, T doc, ElementParserService<T> parserService) Parses the given element, generating one or more fields and adding them to the given document.- Parameters:
element- the element to parsefieldName- the field name that should be used for the main field (by default will be the path of the element in the tree plus the element name)parentFieldName- the field name of the parent elementdoc- the document to add the generated fieldsparserService- the parser service used normally to parse sub elements- Returns:
- true if the element was parsed or handled, false otherwise
-