public class Parser<RECORD> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addDisector(Disector disector) |
void |
addParseTarget(Method method,
List<String> fieldValues) |
static String |
cleanupFieldValue(String fieldValue) |
Parsable<RECORD> |
createParsable() |
void |
dropDisector(Class<? extends Disector> disectorClassToDrop) |
Map<String,EnumSet<Casts>> |
getAllCasts() |
EnumSet<Casts> |
getCasts(String name) |
Set<String> |
getNeeded() |
List<String> |
getPossiblePaths()
This method is for use by the developer to query the parser about
the possible paths that may be extracted.
|
List<String> |
getPossiblePaths(int maxDepth)
This method is for use by the developer to query the parser about
the possible paths that may be extracted.
|
RECORD |
parse(RECORD record,
String value)
Parse the value and call all configured setters in the provided instance of RECORD.
|
RECORD |
parse(String value)
Parse the value and return a new instance of RECORD.
|
protected void |
setRootType(String newRootType) |
public final void addDisector(Disector disector)
protected void setRootType(String newRootType)
public RECORD parse(String value) throws DisectionFailure, InvalidDisectorException, MissingDisectorsException
public RECORD parse(RECORD record, String value) throws DisectionFailure, InvalidDisectorException, MissingDisectorsException
public List<String> getPossiblePaths() throws MissingDisectorsException, InvalidDisectorException
InvalidDisectorExceptionMissingDisectorsExceptionpublic List<String> getPossiblePaths(int maxDepth) throws MissingDisectorsException, InvalidDisectorException
maxDepth - The maximum recursion depthInvalidDisectorExceptionMissingDisectorsExceptionCopyright © 2014. All Rights Reserved.