public static class JSONUtility.JSONObject extends Object implements JSONUtility.JSONValue
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,JSONUtility.JSONValue> |
m_nodes |
Constructor and Description |
---|
JSONObject() |
Modifier and Type | Method and Description |
---|---|
void |
check(JSONUtility.JSONContext ctx)
Check Value
|
JsonValue |
createJsonValue(JSONUtility.JSONContext ctx)
build Json
|
<T extends JSONUtility.JSONValue> |
defineArray(String name,
JSONUtility.JSONValueCreator<T> creator) |
<T extends JSONUtility.JSONValue> |
defineNode(String name,
JSONUtility.JSONValueCreator<T> creator) |
String |
get()
Get Value
|
String |
get(JSONUtility.JSONPath path) |
JSONUtility.JSONValue |
getValue(JSONUtility.JSONPath path) |
void |
parse(CharSequence text,
JSONUtility.JSONContext ctx) |
void |
parse(JsonValue obj,
JSONUtility.JSONContext ctx)
Parse JsonValue
|
void |
parse(Reader src,
JSONUtility.JSONContext ctx) |
void |
put(String value,
JSONUtility.JSONContext ctx)
Put Value
|
void |
put(String value,
JSONUtility.JSONContext ctx,
JSONUtility.JSONPath path) |
void |
putValue(JsonValue value,
JSONUtility.JSONContext ctx,
JSONUtility.JSONPath path) |
protected HashMap<String,JSONUtility.JSONValue> m_nodes
public void parse(JsonValue obj, JSONUtility.JSONContext ctx)
parse
in interface JSONUtility.JSONValue
obj
- JsonValuectx
- contextpublic void parse(CharSequence text, JSONUtility.JSONContext ctx)
public void parse(Reader src, JSONUtility.JSONContext ctx) throws IOException
IOException
public void check(JSONUtility.JSONContext ctx)
check
in interface JSONUtility.JSONValue
ctx
- contextpublic <T extends JSONUtility.JSONValue> T defineNode(String name, JSONUtility.JSONValueCreator<T> creator)
public <T extends JSONUtility.JSONValue> JSONUtility.JSONArray<T> defineArray(String name, JSONUtility.JSONValueCreator<T> creator)
public JsonValue createJsonValue(JSONUtility.JSONContext ctx)
createJsonValue
in interface JSONUtility.JSONValue
ctx
- contextpublic String get()
get
in interface JSONUtility.JSONValue
public String get(JSONUtility.JSONPath path)
public JSONUtility.JSONValue getValue(JSONUtility.JSONPath path)
public void put(String value, JSONUtility.JSONContext ctx)
put
in interface JSONUtility.JSONValue
value
- valuectx
- contextpublic void put(String value, JSONUtility.JSONContext ctx, JSONUtility.JSONPath path)
public void putValue(JsonValue value, JSONUtility.JSONContext ctx, JSONUtility.JSONPath path)
EDB Working Group at Tue Jun 10 17:08:59 JST 2025