Examples of PluginPropertyVO


Examples of org.vosao.business.vo.PluginPropertyVO

    List<PluginPropertyVO> result = new ArrayList<PluginPropertyVO>();
    try {
      Document doc = DocumentHelper.parseText(plugin.getConfigStructure());
      for (Element e : (List<Element>)doc.getRootElement().elements()) {
        if (e.getName().equals("param")) {
          PluginPropertyVO p = new PluginPropertyVO();
          if (e.attributeValue("name") == null) {
            logger.error("There must be name attribute for param tag.");
            continue;
          }
          if (e.attributeValue("type") == null) {
            logger.error("There must be type attribute for param tag.");
            continue;
          }
          p.setName(e.attributeValue("name"));
          p.setType(e.attributeValue("type"));
          p.setDefaultValue(e.attributeValue("value"));
          if (e.attributeValue("title") == null) {
            p.setTitle(p.getName());
          }
          else {
            p.setTitle(e.attributeValue("title"));
          }
          result.add(p);
        }
      }
      return result;
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.