Package speculoos.jndi.mappers

Examples of speculoos.jndi.mappers.ModifyMapperImpl


  public class ModifyHandler implements TagHandler {

    public void startElement(String uri, String localName, String qName,
        Attributes attributes) throws SAXException {
      ModifyMapperImpl smi = new ModifyMapperImpl(attributes
          .getValue("name"));
      smi.setTypeHelper(typeHelper);
      Object input = maps.get(attributes.getValue("input"));
      Object output = maps.get(attributes.getValue("output"));
      if (output != null) {
        try {
          if (input != null)
            smi.setOutput((Class) input, (Map) output);
          else
            smi.setOperations(new ModificationsVariables(
                (Map) output));
        } catch (ClassCastException e) {
          throw new SAXException(
              "Incorrect types for input/output attributes in search map. Output should be a map and input a bean.");
        }
View Full Code Here


      push(smi);
    }

    public void endElement(String uri, String localName, String qName) {
      // add mapper to source
      ModifyMapperImpl smi = (ModifyMapperImpl) pop();
      add(smi.getName(), smi);
      ((JNDISource) current).add(smi.getName(), smi);
      link(smi.getName(), ((JNDISource) current).getName());
    }
View Full Code Here

TOP

Related Classes of speculoos.jndi.mappers.ModifyMapperImpl

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.