Package speculoos.utils

Examples of speculoos.utils.VariableString


    public void endElement(String uri, String localName, String qName)
        throws SAXException {
      String f = getBuffer();
      StringVariable flt = new StringVariable(localName,
          new VariableString(f));
      ((JNDIMapper) current).getInputChain().addMapper(flt);
    }
View Full Code Here


        add(smi.getName(), smi);
        ((JNDISource) current).add(smi.getName(), smi);
        link(smi.getName(), ((JNDISource) current).getName());
      } else if ("newRDN".equals(localName)) {
        StringVariable flt = new StringVariable(localName,
            new VariableString(getBuffer()));
        ((JNDIMapper) current).getInputChain().addMapper(flt);
      }
    }
View Full Code Here

    public void endElement(String uri, String localName, String qName) {
      String f = getBuffer();
      if (!"".equals(f)) {
        StringVariable flt = new StringVariable(localName,
            new VariableString(f));
        ((JNDIMapper) current).getInputChain().addMapper(flt);
      }
    }
View Full Code Here

      Object[] poped = (Object[]) pop();
      ModificationsVariables.AttributeAndOperation ao = (ModificationsVariables.AttributeAndOperation) poped [0];
      String ref = (String) poped[1];
      if (ref == null) {
        // value specified with a variable string
        VariableString vs =  new VariableString(val);
        vs.setIgnoreMissing(((Boolean)poped[2]).booleanValue());
        ((ModifyMapperImpl) current).operation(ao, vs)
      } else {
        // value specified with an object reference
        ((ModifyMapperImpl) current).operation(ao, ref);
      }
View Full Code Here

        Attributes attributes) throws SAXException {
    }

    public void endElement(String uri, String localName, String qName) {
      String root = getBuffer();
      ((JNDIMapper) current).setRoot(new VariableString(root));
    }
View Full Code Here

    /* configure source */
    env.put("orga", "Personnes");
    env.put("pid", "toto");
    /* configure mapper */
    ModifyMapperImpl smi = new ModifyMapperImpl("modify");
    this.root = new VariableString(rootstr);
    /* expectations */
    this.cn = new CompoundName(root.instance(env), Constants.SYNTAX);
    npmock.expects(once()).method("parse").with(
        eq("cn=toto,ou=Personnes,o=canam")).will(returnValue(cn));
    smi.setRoot(root);
View Full Code Here

    input.setName("Naquin");
    input.setSurname("Thierry");
    /* operations */

    this.mods = new ModificationsVariables(output);
    mods.modifyAttribute("name", new VariableString("${self.name}"));
    mods.modifyAttribute("surname", new VariableString("${self.surname}"));
    sm.setOperations(mods);
    sm.modify(input, env);
  }
View Full Code Here

    Map input = new HashMap();
    input.put("emp1", "toto");
    input.put("emp2", "tutu");
    /* operations */
    this.mods = new ModificationsVariables(output);
    mods.modifyAttribute("sites", new VariableString("${emp1}"));
    mods.modifyAttribute("sites", new VariableString("${emp2}"));
    sm.setOperations(mods);
    sm.modify(null, input);
  }
View Full Code Here

    /* input */
    Map input = new HashMap();
    input.put("nom", "");
    /* operations */
    this.mods = new ModificationsVariables(output);
    mods.modifyAttribute("name", new VariableString("${nom}"));
    sm.setOperations(mods);
    sm.modify(input, input);
  }
View Full Code Here

    input.put("emp1", "toto");
    input.put("emp2", "tutu");
    input.put("nom complet", "tata toto");
    /* operations */
    this.mods = new ModificationsVariables(output);
    mods.modifyAttribute("sites", new VariableString("${emp1}"));
    mods.addAttribute("sites", new VariableString("${nom complet}"));
    mods.modifyAttribute("sites", new VariableString("${emp2}"));
    sm.setOperations(mods);
    sm.modify(input, input);
  }
View Full Code Here

TOP

Related Classes of speculoos.utils.VariableString

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.