parserWrapper.nextToken();
parserWrapper.verifyCurrentToken( JsonToken.FIELD_NAME );
String currentName3 = parserWrapper.getCurrentName();
if ( !PROPERTY_MIN.equals( currentName3 ) ) {
throw new JsonParseException( "Invalid field. Expected <" + PROPERTY_MIN + "> but was <" + currentName3 + ">", parserWrapper.getCurrentLocation() );
}
parserWrapper.nextToken();
Version min = Version.parse( deserializeFrom.getText() );
//max
parserWrapper.nextToken();
parserWrapper.verifyCurrentToken( JsonToken.FIELD_NAME );
String currentName2 = parserWrapper.getCurrentName();
if ( !PROPERTY_MAX.equals( currentName2 ) ) {
throw new JsonParseException( "Invalid field. Expected <" + PROPERTY_MAX + "> but was <" + currentName2 + ">", parserWrapper.getCurrentLocation() );
}
parserWrapper.nextToken();
Version max = Version.parse( deserializeFrom.getText() );
//includeLower
parserWrapper.nextToken();
parserWrapper.verifyCurrentToken( JsonToken.FIELD_NAME );
String currentName1 = parserWrapper.getCurrentName();
if ( !PROPERTY_INCLUDELOWER.equals( currentName1 ) ) {
throw new JsonParseException( "Invalid field. Expected <" + PROPERTY_INCLUDELOWER + "> but was <" + currentName1 + ">", parserWrapper.getCurrentLocation() );
}
parserWrapper.nextToken();
boolean includeLower = deserializeFrom.getBooleanValue();
//includeUpper
parserWrapper.nextToken();
parserWrapper.verifyCurrentToken( JsonToken.FIELD_NAME );
String currentName = parserWrapper.getCurrentName();
if ( !PROPERTY_INCLUDEUPPER.equals( currentName ) ) {
throw new JsonParseException( "Invalid field. Expected <" + PROPERTY_INCLUDEUPPER + "> but was <" + currentName + ">", parserWrapper.getCurrentLocation() );
}
parserWrapper.nextToken();
boolean includeUpper = deserializeFrom.getBooleanValue();
//Finally closing element
parserWrapper.nextToken( JsonToken.END_OBJECT );