Package com.wot.shared

Examples of com.wot.shared.XmlListAchievement


          String descMedalWithB= AllLinesWot.substring(posDebutB-1 + "<".length(), posInf);
          System.out.println("\t" + descMedalWithB);
         
         
          //création d'un achievement
          XmlListAchievement myXmlListAchievement = objFactory.createXmlListAchievement();
         
          //set du nom de la médaille
          myXmlListAchievement.setNAME(titleMedal);
         
          //set description de la médaille
          //création xlmDescrition achievement
          myXmlDescription= objFactory.createXmlDescription();
          myXmlDescription.setVALUE(descMedalWithB);
          myXmlListAchievement.setDESCRIPTION(myXmlDescription);
         
          //set des src des icônes des médailles
          XmlListSrcImg myXmlListSrcImg = objFactory.createXmlListSrcImg();
         
          for (String src : listSrcImgMedal) {
            //création des src
            XmlSrc myXmlSrc = objFactory.createXmlSrc();
            myXmlSrc.setVALUE(src);
           
            //ajout à la liste des src de la médaille
            myXmlListSrcImg.getSRC().add(myXmlSrc);
          }
         
          myXmlListAchievement.setSRCIMG(myXmlListSrcImg);
         
          //ajouter listAchievement à Catégory achievement
          myXmlListCategoryAchievement.getACHIEVEMENT().add(myXmlListAchievement);
        }
       
View Full Code Here


          ///replace /wiki
          finalDescMedal = finalDescMedal.replaceAll("/wiki.", "http://wiki.");
          System.out.println("\t" + descMedalWithB);
         
          //création d'un achievement
          XmlListAchievement myXmlListAchievement = objFactory.createXmlListAchievement();
         
          //set du nom de la médaille
          myXmlListAchievement.setNAME(titleMedal);
         
          //set description de la médaille
          //création xlmDescrition achievement
          myXmlDescription= objFactory.createXmlDescription();
          myXmlDescription.setVALUE(finalDescMedal);
          myXmlListAchievement.setDESCRIPTION(myXmlDescription);
         
          //set des src des icônes des médailles
          XmlListSrcImg myXmlListSrcImg = objFactory.createXmlListSrcImg();
         
          for (String src : listSrcImgMedal) {
            //création des src
            XmlSrc myXmlSrc = objFactory.createXmlSrc();
            src = src.replaceAll("/wiki.", "http://wiki.");
            myXmlSrc.setVALUE(src);
           
            //ajout à la liste des src de la médaille
            myXmlListSrcImg.getSRC().add(myXmlSrc);
          }
         
          myXmlListAchievement.setSRCIMG(myXmlListSrcImg);
         
          //ajouter listAchievement à Catégory achievement
          myXmlListCategoryAchievement.getACHIEVEMENT().add(myXmlListAchievement);
        }
       
View Full Code Here

//        return sb;
//      }
     
      static public String buildHtmlHeader(HashMap<String, XmlListAchievement> hashMapAch, String nameAch) {
        //String nameAch = "Beasthunter";
        XmlListAchievement ach = hashMapAch.get(nameAch+".png");
          String title2 = ach.getDESCRIPTION().getVALUE();
        SafeHtmlBuilder sb = new SafeHtmlBuilder();
        String html = "<div id=\"achievement\" >" + " <div class=\"floatleft\"> " +    title2 + "</div>";
        return html;
      }
View Full Code Here

        return html;
      }
     
      static public String buildImgAch(HashMap<String, XmlListAchievement> hashMapAch, String nameAch, CommunityAccount object, int val) {
        //String nameAch = "Beasthunter";
        XmlListAchievement ach = hashMapAch.get(nameAch+".png");
        String urlImgSrc2 = "";
        if (ach.getSRCIMG().getSRC().size() == 1 ) {
          urlImgSrc2 =  ach.getSRCIMG().getSRC().get(0).getVALUE();
        } else {
          //urlImgSrc2
          for (XmlSrc xmlSrc : ach.getSRCIMG().getSRC()) {
            if (xmlSrc.getVALUE().contains(nameAch+".png")) {
              urlImgSrc2 = xmlSrc.getVALUE();
              break ;
            }
          }
View Full Code Here

        return urlImgSrc2;
      }
     
      static public String getNameAch(HashMap<String, XmlListAchievement> hashMapAch, String nameAch) {
        //String nameAch = "Beasthunter";
        XmlListAchievement ach = hashMapAch.get(nameAch+".png");
        if(ach != null)
          return ach.getNAME();
        else
          return null;
      }
View Full Code Here

//        return sb;
//      }
     
      static public String buildHtmlHeader(HashMap<String, XmlListAchievement> hashMapAch, String nameAch) {
        //String nameAch = "Beasthunter";
        XmlListAchievement ach = hashMapAch.get(nameAch+".png");
          String title2 = ach.getDESCRIPTION().getVALUE();
        SafeHtmlBuilder sb = new SafeHtmlBuilder();
        String html = "<div id=\"achievement\" >" + " <div class=\"floatleft\"> " +    title2 + "</div>";
        return html;
      }
View Full Code Here

        return html;
      }
     
      static public String buildImgAch(HashMap<String, XmlListAchievement> hashMapAch, String nameAch, CommunityAccount object, int val) {
        //String nameAch = "Beasthunter";
        XmlListAchievement ach = hashMapAch.get(nameAch+".png");
        String urlImgSrc2 = "";
        if (ach.getSRCIMG().getSRC().size() == 1 ) {
          urlImgSrc2 =  ach.getSRCIMG().getSRC().get(0).getVALUE();
        } else {
          //urlImgSrc2
          for (XmlSrc xmlSrc : ach.getSRCIMG().getSRC()) {
            if (xmlSrc.getVALUE().contains(nameAch+".png")) {
              urlImgSrc2 = xmlSrc.getVALUE();
              break ;
            }
          }
View Full Code Here

        return urlImgSrc2;
      }
     
      static public String getNameAch(HashMap<String, XmlListAchievement> hashMapAch, String nameAch) {
        //String nameAch = "Beasthunter";
        XmlListAchievement ach = hashMapAch.get(nameAch+".png");
        if(ach != null)
          return ach.getNAME();
        else
          return null;
      }
View Full Code Here

          String descMedalWithB= AllLinesWot.substring(posDebutB-1 + "<".length(), posInf);
          System.out.println("\t" + descMedalWithB);
         
         
          //création d'un achievement
          XmlListAchievement myXmlListAchievement = objFactory.createXmlListAchievement();
         
          //set du nom de la médaille
          myXmlListAchievement.setNAME(titleMedal);
         
          //set description de la médaille
          //création xlmDescrition achievement
          myXmlDescription= objFactory.createXmlDescription();
          myXmlDescription.setVALUE(descMedalWithB);
          myXmlListAchievement.setDESCRIPTION(myXmlDescription);
         
          //set des src des icônes des médailles
          XmlListSrcImg myXmlListSrcImg = objFactory.createXmlListSrcImg();
         
          for (String src : listSrcImgMedal) {
            //création des src
            XmlSrc myXmlSrc = objFactory.createXmlSrc();
            myXmlSrc.setVALUE(src);
           
            //ajout à la liste des src de la médaille
            myXmlListSrcImg.getSRC().add(myXmlSrc);
          }
         
          myXmlListAchievement.setSRCIMG(myXmlListSrcImg);
         
          //ajouter listAchievement à Catégory achievement
          myXmlListCategoryAchievement.getACHIEVEMENT().add(myXmlListAchievement);
        }
       
View Full Code Here

TOP

Related Classes of com.wot.shared.XmlListAchievement

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.