public class JsonElement extends Object
| Constructor and Description | 
|---|
JsonElement(JsonElement baseElement)
Constructs a JsonElement from an existing JsonElement,
 using its parser and event list. 
 | 
JsonElement(javax.json.stream.JsonParser jsonParser,
           List<String> eventList)
Constructs a JsonElement. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected AttributeValue | 
contructBooleanValue(boolean val)
Contruct and return an AttributeValue representation of a boolean. 
 | 
protected AttributeValue | 
contructDoubleValue(double val)
Contruct and return an AttributeValue representation of a double. 
 | 
protected AttributeValue | 
contructLongValue(long val)
Contruct and return an AttributeValue representation of a long. 
 | 
protected AttributeValue | 
contructLongValue(String val)
Contruct and return an AttributeValue representation of a long. 
 | 
protected AttributeValue | 
contructStringValue(String val)
Contruct and return an AttributeValue representation of a String. 
 | 
List<String> | 
getJsonEventStringList()
Gets the list of JSON event Strings encountered during parse. 
 | 
javax.json.stream.JsonParser | 
getJsonParser()
Gets the JSON parser used for parsing. 
 | 
protected javax.json.stream.JsonParser.Event | 
getNextEvent()
Get the next JSON event from the parser. 
 | 
protected String | 
getValueAsJsonValue(AttributeValue av)
Get the JSON string representation for the specified value,
 as a String, number, boolean, or null. 
 | 
public JsonElement(javax.json.stream.JsonParser jsonParser,
                   List<String> eventList)
jsonParser - the JSON parser being used to create this objecteventList - the event string listpublic JsonElement(JsonElement baseElement)
baseElement - the JsonElement which holds the
                      parser and event listpublic javax.json.stream.JsonParser getJsonParser()
public List<String> getJsonEventStringList()
protected javax.json.stream.JsonParser.Event getNextEvent()
protected AttributeValue contructStringValue(String val)
val - the String val (can be null)protected AttributeValue contructLongValue(String val)
val - the String represenation of a number (can be null)protected AttributeValue contructLongValue(long val)
val - the long valueprotected AttributeValue contructDoubleValue(double val)
val - the double valueprotected AttributeValue contructBooleanValue(boolean val)
val - the boolean valprotected String getValueAsJsonValue(AttributeValue av)
av - the AttributeValue representationCopyright © 2025. All rights reserved.