|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.json.JsonConverter
public abstract class JsonConverter
Interface for converters from JSON to XQuery values.
Field Summary | |
---|---|
static byte[] |
COMPACT
The compact conversion type. |
protected InputInfo |
info
Input info. |
static byte[] |
JSONML
The jsonml conversion type. |
static byte[] |
MAPS
The map conversion type. |
Constructor Summary | |
---|---|
JsonConverter(InputInfo ii)
Constructor. |
Method Summary | |
---|---|
abstract Item |
convert(java.lang.String in)
Converts the given JSON string into an XQuery value. |
static JsonConverter |
newInstance(byte[] type,
JsonParser.Spec spec,
boolean unesc,
InputInfo ii)
Returns a JsonConverter for the given configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final InputInfo info
public static final byte[] MAPS
map
conversion type.
public static final byte[] COMPACT
compact
conversion type.
public static final byte[] JSONML
jsonml
conversion type.
Constructor Detail |
---|
public JsonConverter(InputInfo ii)
ii
- input infoMethod Detail |
---|
public abstract Item convert(java.lang.String in) throws QueryException
in
- the JSON string
QueryException
- parse exceptionpublic static JsonConverter newInstance(byte[] type, JsonParser.Spec spec, boolean unesc, InputInfo ii)
JsonConverter
for the given configuration.
type
- conversion typespec
- JSON specunesc
- unescape flagii
- input info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |