Examples of verifyCurrentToken()


Examples of com.cedarsoft.serialization.jackson.JacksonParserWrapper.verifyCurrentToken()

  @Override
  public Application deserialize( @Nonnull JsonParser deserializeFrom, @Nonnull Version formatVersion ) throws VersionException, IOException, JsonProcessingException {
    //name
    JacksonParserWrapper parserWrapper = new JacksonParserWrapper( deserializeFrom );
    parserWrapper.nextToken();
    parserWrapper.verifyCurrentToken( JsonToken.FIELD_NAME );
    String currentName = parserWrapper.getCurrentName();

    if ( !PROPERTY_NAME.equals( currentName ) ) {
      throw new JsonParseException( "Invalid field. Expected <" + PROPERTY_NAME + "> but was <" + currentName + ">", parserWrapper.getCurrentLocation() );
    }
View Full Code Here

Examples of com.cedarsoft.serialization.jackson.JacksonParserWrapper.verifyCurrentToken()

      wrapper.closeObject();
    } else {
      doc = null;
    }

    wrapper.verifyCurrentToken( JsonToken.END_OBJECT );
    return new Row<>( id, key, value, doc );
  }
}
View Full Code Here

Examples of com.cedarsoft.serialization.jackson.JacksonParserWrapper.verifyCurrentToken()

      wrapper.closeObject();
    } else {
      doc = null;
    }

    wrapper.verifyCurrentToken( JsonToken.END_OBJECT );
    return new Row<K, V, D>( id, key, value, doc );
  }
}
View Full Code Here

Examples of com.cedarsoft.serialization.jackson.JacksonParserWrapper.verifyCurrentToken()

      wrapper.closeObject();
    } else {
      doc = null;
    }

    wrapper.verifyCurrentToken( JsonToken.END_OBJECT );
    return new Row<>( id, key, value, doc );
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.