Package org.c3s.reflection

Examples of org.c3s.reflection.XMLList


  public void getGameList(@Parameter("tag") String tag, @Parameter("template") String template,
      @ParameterGet("page") Integer page) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SQLException, XMLException {
    List<DBGamesBean> beans = DbAccess.gamesAccess.getTableRecords();
    Document xml = null;
    if (beans != null) {
      xml = new XMLList(beans, true).toXML("data");
    } else {
      xml = XMLUtils.createXML("data");
    }
    logger.debug(XMLUtils.xml2out(xml));
  }
View Full Code Here


      @ParameterGet("page") Integer page) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SQLException, XMLException {
   
    List<DBGamesBean> beans = DbAccess.gamesAccess.getTableRecords();
    Document xml = null;
    if (beans != null) {
      xml = new XMLList(beans, true).toXML("data");
    } else {
      xml = XMLUtils.createXML("data");
    }
    ContentObject.getInstance().setData(tag, xml, template, new HashMap<String, Object>() {{
      put("mode", "list");
View Full Code Here

  public void getList(@Parameter("tag") String tag, @Parameter("template") String template) throws IllegalArgumentException, IllegalAccessException, InstantiationException, SQLException, XMLException {

    List<DBTypesBean> beans = DbAccess.typesAccess.getTableRecords();
    Document xml = null;
    if (beans != null) {
      xml = new XMLList(beans, true).toXML("data");
    } else {
      xml = XMLUtils.createXML("data");
    }
   
    ContentObject.getInstance().setData(tag, xml, template, new HashMap<String, Object>() {{
View Full Code Here

TOP

Related Classes of org.c3s.reflection.XMLList

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.