Package bufferings.ktr.wjr.shared.model.meta

Examples of bufferings.ktr.wjr.shared.model.meta.WjrConfigMeta


   * @param jsonString
   *          the Json string.
   * @return the created WjrConfig instance.
   */
  WjrConfig createWjrConfigFromJson(String jsonString) {
    WjrConfigMeta m = WjrConfigMeta.meta();
    WjrConfig wjrConfig = new WjrConfig();

    JSONObject j = JSONParser.parseStrict(jsonString).isObject();
    wjrConfig.setConfigId(j.get(m.configId).isString().stringValue());
    wjrConfig.setConfigName(j.get(m.configName).isString().stringValue());
View Full Code Here


   *          the config.
   * @throws IOException
   *           when fail to write
   */
  void writeConfig(JsonWriter writer, WjrConfig config) throws IOException {
    WjrConfigMeta m = WjrConfigMeta.meta();

    writer
      .beginObject()
      .name(m.configId)
      .value(config.getConfigId())
View Full Code Here

TOP

Related Classes of bufferings.ktr.wjr.shared.model.meta.WjrConfigMeta

Copyright © 2018 www.massapicom. 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.