public class JsonOutputHandler extends ACustomOutputHandler implements IStringSerializable<com.google.gson.JsonObject>
DEFAULT_WRAPPER_ID
Constructor and Description |
---|
JsonOutputHandler() |
JsonOutputHandler(boolean allowMultipleValuesPerAttribute,
boolean useArrayForValues,
boolean prettyPrint) |
JsonOutputHandler(String wrapperId,
boolean allowMultipleValuesPerAttribute,
boolean useArrayForValues,
boolean prettyPrint) |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
com.google.gson.JsonObject |
getAccumulativeOutput() |
boolean |
isPrettyPrint() |
boolean |
isUseArrayForValues() |
protected void |
processNodeImpl(OXPathExtractionNode node) |
getAllowMultipleValuesPerAttribute, getAttributesSeenPerTuple, getOuterExceptions, getOuterExceptionStackTracesAsString, getWrapperId, hasOuterException, isEndNodeReceived, logInfo, processNode, receiveOuterException
public JsonOutputHandler()
public JsonOutputHandler(boolean allowMultipleValuesPerAttribute, boolean useArrayForValues, boolean prettyPrint)
allowMultipleValuesPerAttribute
- true: multiple values are allowed per attributeuseArrayForValues
- use array for storing values.prettyPrint
- true: use indentation in the serialized JSONpublic JsonOutputHandler(String wrapperId, boolean allowMultipleValuesPerAttribute, boolean useArrayForValues, boolean prettyPrint)
wrapperId
- allowMultipleValuesPerAttribute
- true: multiple values are allowed per attributeuseArrayForValues
- use array for storing values.prettyPrint
- true: use indentation in the serialized JSONpublic boolean isUseArrayForValues()
public boolean isPrettyPrint()
protected void processNodeImpl(OXPathExtractionNode node)
processNodeImpl
in class ACustomOutputHandler
public com.google.gson.JsonObject getAccumulativeOutput()
getAccumulativeOutput
in interface IWithAccumulativeOutput<com.google.gson.JsonObject>
public String asString()
asString
in interface IStringSerializable<com.google.gson.JsonObject>
Copyright © 2020 OXPath Team. All rights reserved.