public class JSONMLParserConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAXIMUM_NESTING_DEPTH
The default maximum nesting depth when parsing a XML document to JSONML.
|
static JSONMLParserConfiguration |
KEEP_STRINGS
Original configuration of the XML to JSONML Parser except that values are kept as strings.
|
static JSONMLParserConfiguration |
ORIGINAL
Original Configuration of the XML to JSONML Parser.
|
static int |
UNDEFINED_MAXIMUM_NESTING_DEPTH
Used to indicate there's no defined limit to the maximum nesting depth when parsing a XML
document to JSONML.
|
| Constructor and Description |
|---|
JSONMLParserConfiguration()
Default parser configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected JSONMLParserConfiguration |
clone()
Provides a new instance of the same configuration.
|
int |
getMaxNestingDepth()
The maximum nesting depth that the parser will descend before throwing an exception
when parsing the XML into JSONML.
|
boolean |
isKeepStrings()
When parsing the XML into JSONML, specifies if values should be kept as strings (
true), or if
they should try to be guessed into JSON values (numeric, boolean, string) |
JSONMLParserConfiguration |
withKeepStrings(boolean newVal)
When parsing the XML into JSONML, specifies if values should be kept as strings (
true), or if
they should try to be guessed into JSON values (numeric, boolean, string) |
JSONMLParserConfiguration |
withMaxNestingDepth(int maxNestingDepth)
Defines the maximum nesting depth that the parser will descend before throwing an exception
when parsing the XML into JSONML.
|
public static final int UNDEFINED_MAXIMUM_NESTING_DEPTH
public static final int DEFAULT_MAXIMUM_NESTING_DEPTH
public static final JSONMLParserConfiguration ORIGINAL
public static final JSONMLParserConfiguration KEEP_STRINGS
public JSONMLParserConfiguration()
protected JSONMLParserConfiguration clone()
public boolean isKeepStrings()
true), or if
they should try to be guessed into JSON values (numeric, boolean, string)keepStrings configuration value.public JSONMLParserConfiguration withKeepStrings(boolean newVal)
true), or if
they should try to be guessed into JSON values (numeric, boolean, string)newVal - new value to use for the keepStrings configuration option.public int getMaxNestingDepth()
public JSONMLParserConfiguration withMaxNestingDepth(int maxNestingDepth)
maxNestingDepth - the maximum nesting depth allowed to the XML parser