Examples of PojoAttribute


Examples of de.mhus.lib.pojo.PojoAttribute

  }
 
  @Override
  public void setPropertyData(String name, Object value) throws MException {
    if (model != null) {
      PojoAttribute attr = model.getAttribute(name);
      if (attr == null) throw new MException("attribute not found",name);
      try {
        attr.set(pojo,value);
      } catch (IOException e) {
        throw new MException(name,e);
      }
    }
  }
View Full Code Here

Examples of de.mhus.lib.pojo.PojoAttribute

  }

  @Override
  public Object getProperty(String name) {
    if (model != null) {
      PojoAttribute attr = model.getAttribute(name);
      if (attr == null) return null;
      try {
        return attr.get(pojo);
      } catch (IOException e) {
        e.printStackTrace();
        return null;
      }
    }
View Full Code Here

Examples of de.mhus.lib.pojo.PojoAttribute

  }

  @Override
  public boolean isProperty(String name) {
    if (model != null) {
      PojoAttribute attr = model.getAttribute(name);
      return attr != null;
    }
    return false;
  }
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.