Examples of AjPropertyValue


Examples of com.coroptis.cubiculus.rest.model.AjPropertyValue

    @Override
    public Object toJava(JSONValue aValue, Class aRequestedClass) throws MapperException {
  if (aValue.isObject()) {
      final JSONObject jsonObject = (JSONObject) aValue;
      final AjPropertyValue out = new AjPropertyValue();

      out.setIdPropertyValue(Helper.getIntRequired(jsonObject, "idPropertyValue",
        "AjPropertyValue property idPropertyValue was not found in json data"));
      out.setName(Helper.getStringRequired(jsonObject, "name",
        "AjPropertyValue property name was not found in json data"));
      out.setWebName(Helper.getStringRequired(jsonObject, "webName",
        "AjPropertyValue property webName was not found in json data"));
      out.setCount(Helper.getIntRequired(jsonObject, "count",
        "AjPropertyValue property count was not found in json data"));
      return out;
  }
  throw new MapperException("AjPropertyValue cannot map: " + aValue.getClass().getName());
    }
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.