Package speculoos.core

Examples of speculoos.core.ChainMapper


     *      java.lang.String, java.lang.String, org.xml.sax.Attributes)
     */
    public void startElement(String uri, String localName, String qName,
        Attributes attributes) throws SAXException {
      String mn = attributes.getValue("name");
      ChainMapper cm = new ChainMapper();
      cm.setName(mn);
      /* add chain registered chains */
      maps.put(mn, cm);
      push(cm);
    }
View Full Code Here


      /*
       * expects a mapper and checks default map is set correctly
       */
      public boolean eval(Object arg0) {
        MapperCollector vd = (MapperCollector) arg0;
        ChainMapper cm = new ChainMapper();
        Collection valids = vd.getMappers();
        cm.addMappers(valids);
        Pers p = new Pers();
        HashMap m= new HashMap();
        m.put("nom","toto");
        m.put("prenom","toto");
       
        try {
          p = (Pers) cm.map(p, m);
        } catch (MapperException e) {
          e.printStackTrace();
          return false;
        }
        /* check all default values */
 
View Full Code Here

TOP

Related Classes of speculoos.core.ChainMapper

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.