public final class JSONValidationTargetWithUniqueKeys extends JSONValidationTarget
| Constructor and Description |
|---|
JSONValidationTargetWithUniqueKeys()
Creates new instance of JSON validation target with unique keys.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endArray()
End of the current array.
|
void |
endObject()
End of the current object.
|
JSONItemType |
getResult()
Returns the result.
|
boolean |
isPropertyExpected()
Returns whether member's name or the end of the current object is
expected.
|
boolean |
isValueSeparatorExpected()
Returns whether value separator expected before the next member or value.
|
void |
member(java.lang.String name)
Name of a member.
|
void |
startArray()
Start of an array.
|
void |
startObject()
Start of an object.
|
void |
valueFalse()
Parse "false".
|
void |
valueNull()
Parse "null".
|
void |
valueNumber(java.math.BigDecimal number)
A number value.
|
void |
valueString(java.lang.String string)
A string value.
|
void |
valueTrue()
Parse "true".
|
public JSONValidationTargetWithUniqueKeys()
public void startObject()
JSONTargetstartObject in class JSONTarget<JSONItemType>public void endObject()
JSONTargetendObject in class JSONTarget<JSONItemType>public void startArray()
JSONTargetstartArray in class JSONTarget<JSONItemType>public void endArray()
JSONTargetendArray in class JSONTarget<JSONItemType>public void member(java.lang.String name)
JSONTargetmember in class JSONTarget<JSONItemType>name - the namepublic void valueNull()
JSONTargetnull value.valueNull in class JSONTarget<JSONItemType>public void valueFalse()
JSONTargetfalse value.valueFalse in class JSONTarget<JSONItemType>public void valueTrue()
JSONTargettrue value.valueTrue in class JSONTarget<JSONItemType>public void valueNumber(java.math.BigDecimal number)
JSONTargetvalueNumber in class JSONTarget<JSONItemType>number - the numberpublic void valueString(java.lang.String string)
JSONTargetvalueString in class JSONTarget<JSONItemType>string - the stringpublic boolean isPropertyExpected()
JSONTargetisPropertyExpected in class JSONTarget<JSONItemType>true if it is, false otherwisepublic boolean isValueSeparatorExpected()
JSONTargetisValueSeparatorExpected in class JSONTarget<JSONItemType>true if it is, false otherwisepublic JSONItemType getResult()
JSONTargetgetResult in class JSONValidationTargetJSONItemType.VALUE