Package net.sourceforge.plantuml.json
Class Json.DefaultHandler
java.lang.Object
net.sourceforge.plantuml.json.JsonHandler<JsonArray,JsonObject>
net.sourceforge.plantuml.json.Json.DefaultHandler
- Enclosing class:
- Json
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Indicates the end of an array in the JSON input.void
endArrayValue
(JsonArray array) Indicates the end of an array element in the JSON input.void
endBoolean
(boolean bool) Indicates the end of a boolean literal (true
orfalse
) in the JSON input.void
endNull()
Indicates the end of anull
literal in the JSON input.void
Indicates the end of a number in the JSON input.void
endObject
(JsonObject object) Indicates the end of an object in the JSON input.void
endObjectValue
(JsonObject object, String name) Indicates the end of an object member value in the JSON input.void
Indicates the end of a string in the JSON input.getValue()
Indicates the beginning of an array in the JSON input.Indicates the beginning of an object in the JSON input.Methods inherited from class net.sourceforge.plantuml.json.JsonHandler
endObjectName, getLocation, startArrayValue, startBoolean, startNull, startNumber, startObjectName, startObjectValue, startString
-
Field Details
-
value
-
-
Constructor Details
-
DefaultHandler
public DefaultHandler()
-
-
Method Details
-
startArray
Description copied from class:JsonHandler
Indicates the beginning of an array in the JSON input. This method will be called when reading the opening square bracket character ('['
).This method may return an object to handle subsequent parser events for this array. This array handler will then be provided in all calls to
startArrayValue()
,endArrayValue()
, andendArray()
for this array.- Overrides:
startArray
in classJsonHandler<JsonArray,
JsonObject> - Returns:
- a handler for this array, or
null
if not needed
-
startObject
Description copied from class:JsonHandler
Indicates the beginning of an object in the JSON input. This method will be called when reading the opening curly bracket character ('{'
).This method may return an object to handle subsequent parser events for this object. This object handler will be provided in all calls to
startObjectName()
,endObjectName()
,startObjectValue()
,endObjectValue()
, andendObject()
for this object.- Overrides:
startObject
in classJsonHandler<JsonArray,
JsonObject> - Returns:
- a handler for this object, or
null
if not needed
-
endNull
public void endNull()Description copied from class:JsonHandler
Indicates the end of anull
literal in the JSON input. This method will be called after reading the last character of the literal.- Overrides:
endNull
in classJsonHandler<JsonArray,
JsonObject>
-
endBoolean
public void endBoolean(boolean bool) Description copied from class:JsonHandler
Indicates the end of a boolean literal (true
orfalse
) in the JSON input. This method will be called after reading the last character of the literal.- Overrides:
endBoolean
in classJsonHandler<JsonArray,
JsonObject> - Parameters:
bool
- the parsed boolean value
-
endString
Description copied from class:JsonHandler
Indicates the end of a string in the JSON input. This method will be called after reading the closing double quote character ('"'
).- Overrides:
endString
in classJsonHandler<JsonArray,
JsonObject> - Parameters:
string
- the parsed string
-
endNumber
Description copied from class:JsonHandler
Indicates the end of a number in the JSON input. This method will be called after reading the last character of the number.- Overrides:
endNumber
in classJsonHandler<JsonArray,
JsonObject> - Parameters:
string
- the parsed number string
-
endArray
Description copied from class:JsonHandler
Indicates the end of an array in the JSON input. This method will be called after reading the closing square bracket character (']'
).- Overrides:
endArray
in classJsonHandler<JsonArray,
JsonObject> - Parameters:
array
- the array handler returned fromJsonHandler.startArray()
, ornull
if not provided
-
endObject
Description copied from class:JsonHandler
Indicates the end of an object in the JSON input. This method will be called after reading the closing curly bracket character ('}'
).- Overrides:
endObject
in classJsonHandler<JsonArray,
JsonObject> - Parameters:
object
- the object handler returned fromJsonHandler.startObject()
, or null if not provided
-
endArrayValue
Description copied from class:JsonHandler
Indicates the end of an array element in the JSON input. This method will be called after reading the last character of the element value, just after theend
method for the specific element type (likeendString()
,endNumber()
, etc.).- Overrides:
endArrayValue
in classJsonHandler<JsonArray,
JsonObject> - Parameters:
array
- the array handler returned fromJsonHandler.startArray()
, ornull
if not provided
-
endObjectValue
Description copied from class:JsonHandler
Indicates the end of an object member value in the JSON input. This method will be called after reading the last character of the member value, just after theend
method for the specific member type (likeendString()
,endNumber()
, etc.).- Overrides:
endObjectValue
in classJsonHandler<JsonArray,
JsonObject> - Parameters:
object
- the object handler returned fromJsonHandler.startObject()
, or null if not providedname
- the parsed member name
-
getValue
-