Class JSONValidationTargetWithoutUniqueKeys
java.lang.Object
org.h2.util.json.JSONTarget<JSONItemType>
org.h2.util.json.JSONValidationTarget
org.h2.util.json.JSONValidationTargetWithoutUniqueKeys
JSON validation target without unique keys.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final byteprivate booleanprivate static final byteprivate final ByteStackprivate JSONItemType -
Constructor Summary
ConstructorsConstructorDescriptionCreates new instance of JSON validation target without unique keys. -
Method Summary
Modifier and TypeMethodDescriptionprivate voidafterValue(JSONItemType type) private voidvoidendArray()End of the current array.voidEnd of the current object.Returns the result.booleanReturns whether member's name or the end of the current object is expected.booleanReturns whether value separator expected before the next member or value.voidName of a member.voidStart of an array.voidStart of an object.voidParse "false".voidParse "null".voidvalueNumber(BigDecimal number) A number value.voidvalueString(String string) A string value.voidParse "true".
-
Field Details
-
OBJECT
private static final byte OBJECT- See Also:
-
ARRAY
private static final byte ARRAY- See Also:
-
type
-
stack
-
needSeparator
private boolean needSeparator -
afterName
private boolean afterName
-
-
Constructor Details
-
JSONValidationTargetWithoutUniqueKeys
public JSONValidationTargetWithoutUniqueKeys()Creates new instance of JSON validation target without unique keys.
-
-
Method Details
-
startObject
public void startObject()Description copied from class:JSONTargetStart of an object.- Specified by:
startObjectin classJSONTarget<JSONItemType>
-
endObject
public void endObject()Description copied from class:JSONTargetEnd of the current object.- Specified by:
endObjectin classJSONTarget<JSONItemType>
-
startArray
public void startArray()Description copied from class:JSONTargetStart of an array.- Specified by:
startArrayin classJSONTarget<JSONItemType>
-
endArray
public void endArray()Description copied from class:JSONTargetEnd of the current array.- Specified by:
endArrayin classJSONTarget<JSONItemType>
-
member
Description copied from class:JSONTargetName of a member.- Specified by:
memberin classJSONTarget<JSONItemType>- Parameters:
name- the name
-
valueNull
public void valueNull()Description copied from class:JSONTargetParse "null".nullvalue.- Specified by:
valueNullin classJSONTarget<JSONItemType>
-
valueFalse
public void valueFalse()Description copied from class:JSONTargetParse "false".falsevalue.- Specified by:
valueFalsein classJSONTarget<JSONItemType>
-
valueTrue
public void valueTrue()Description copied from class:JSONTargetParse "true".truevalue.- Specified by:
valueTruein classJSONTarget<JSONItemType>
-
valueNumber
Description copied from class:JSONTargetA number value.- Specified by:
valueNumberin classJSONTarget<JSONItemType>- Parameters:
number- the number
-
valueString
Description copied from class:JSONTargetA string value.- Specified by:
valueStringin classJSONTarget<JSONItemType>- Parameters:
string- the string
-
beforeValue
private void beforeValue() -
afterValue
-
isPropertyExpected
public boolean isPropertyExpected()Description copied from class:JSONTargetReturns whether member's name or the end of the current object is expected.- Specified by:
isPropertyExpectedin classJSONTarget<JSONItemType>- Returns:
trueif it is,falseotherwise
-
isValueSeparatorExpected
public boolean isValueSeparatorExpected()Description copied from class:JSONTargetReturns whether value separator expected before the next member or value.- Specified by:
isValueSeparatorExpectedin classJSONTarget<JSONItemType>- Returns:
trueif it is,falseotherwise
-
getResult
Description copied from class:JSONTargetReturns the result.- Specified by:
getResultin classJSONValidationTarget- Returns:
- JSON item type of the top-level item, may not return
JSONItemType.VALUE
-