public class RelationOutputHandler extends ACustomOutputHandler implements IWithAccumulativeOutput<RelationModel>
Modifier and Type | Class and Description |
---|---|
static interface |
RelationOutputHandler.IFilter<T> |
Modifier and Type | Field and Description |
---|---|
static RelationOutputHandler.IFilter<List<List<String>>> |
EMPTY_ROW_FILTER |
static String |
ID_LABEL_PART_DEFAULT |
protected String |
idLabelPart |
protected boolean |
includeId |
protected boolean |
includeRecordLabel |
DEFAULT_WRAPPER_ID
Constructor and Description |
---|
RelationOutputHandler(boolean allowMultipleValuesPerAttribute,
String[][] entityRelPathList,
boolean includeId,
boolean includeRecordLabel,
RelationOutputHandler.IFilter<String> valFilter,
RelationOutputHandler.IFilter<List<List<String>>> rowFilter)
The entityRelPathList represent the list of relative paths for entities to be serialised.
|
RelationOutputHandler(String wrapperId,
boolean allowMultipleValuesPerAttribute,
String[][] entityRelPathList,
boolean includeId,
boolean includeRecordLabel,
RelationOutputHandler.IFilter<String> valFilter,
RelationOutputHandler.IFilter<List<List<String>>> rowFilter) |
Modifier and Type | Method and Description |
---|---|
RelationModel |
getAccumulativeOutput() |
protected void |
processNodeImpl(OXPathExtractionNode node) |
getAllowMultipleValuesPerAttribute, getAttributesSeenPerTuple, getOuterExceptions, getOuterExceptionStackTracesAsString, getWrapperId, hasOuterException, isEndNodeReceived, logInfo, processNode, receiveOuterException
public static final String ID_LABEL_PART_DEFAULT
protected final String idLabelPart
protected final boolean includeId
protected final boolean includeRecordLabel
public static RelationOutputHandler.IFilter<List<List<String>>> EMPTY_ROW_FILTER
public RelationOutputHandler(boolean allowMultipleValuesPerAttribute, String[][] entityRelPathList, boolean includeId, boolean includeRecordLabel, RelationOutputHandler.IFilter<String> valFilter, RelationOutputHandler.IFilter<List<List<String>>> rowFilter)
allowMultipleValuesPerAttribute
- true: multiple values are allowed per attributeentityRelPathList
- array of paths of entities to be identified in the extraction treeincludeId
- true: ids corresponding to entities are incorporated into the modelincludeRecordLabel
- true: the name of the record nesting attributes and child entities is included into the path name.valFilter
- a function for filtering values (can be null)recFilter
- a function for filtering records (can be null)public RelationOutputHandler(String wrapperId, boolean allowMultipleValuesPerAttribute, String[][] entityRelPathList, boolean includeId, boolean includeRecordLabel, RelationOutputHandler.IFilter<String> valFilter, RelationOutputHandler.IFilter<List<List<String>>> rowFilter)
wrapperId
- allowMultipleValuesPerAttribute
- true: multiple values are allowed per attributeentityRelPathList
- array of paths of entities to be identified in the extraction treeincludeId
- true: ids corresponding to entities are incorporated into the modelincludeRecordLabel
- true: the name of the record nesting attributes and child entities is included into the path name.valFilter
- a function for filtering values (can be null)recFilter
- a function for filtering records (can be null)protected void processNodeImpl(OXPathExtractionNode node)
processNodeImpl
in class ACustomOutputHandler
public RelationModel getAccumulativeOutput()
getAccumulativeOutput
in interface IWithAccumulativeOutput<RelationModel>
Copyright © 2020 OXPath Team. All rights reserved.