Package fr.norsys.mapper.console.mapping

Examples of fr.norsys.mapper.console.mapping.RegExp


      Attribute attribute = new Attribute(a.getKey());
      attribute.setAttributeLDAP(a.getVal());
      attribute.setDefaultValue(a.getVal());
      attribute.setInputOutput(ConsoleCst.INPUT_ATTRIBUTE_TYPE);
      for (Iterator it2 = regexps.iterator(); it2.hasNext();) {
        RegExp re = (RegExp) it2.next();
        if (a.getKey().equals(re.getKey())) {
          attribute.setRule(re.getValue());
          attribute.setIgnoreNull(re.getIgnoreNull());
        }
      }
      r.addAttribute(attribute);
    }
  }
View Full Code Here


      if (symetric == null){
        Attribute attribute = new Attribute(a.getVal());
        attribute.setAttributeLDAP(a.getKey());
        attribute.setInputOutput(ConsoleCst.OUTPUT_ATTRIBUTE_TYPE);
        for (Iterator it2 = regexps.iterator(); it2.hasNext();) {
          RegExp re = (RegExp) it2.next();
          if (a.getKey().equals(re.getKey())) {
            attribute.setRule(re.getValue());
            attribute.setIgnoreNull(re.getIgnoreNull());
          }
        }
        r.addAttribute(attribute);
      } else {
        symetric.setInputOutput(ConsoleCst.INPUT_OUTPUT_ATTRIBUTE_TYPE)
View Full Code Here

      }
      for (Iterator it2 = r.getAttributes().iterator(); it2
          .hasNext();) {
        Attribute a = (Attribute)it2.next();
        if(a.getRule() != null && !"".equals(a.getRule())) {
          mapper.getRegexps().add(new RegExp(a.getName(),a.getRule(),a.getIgnoreNull()));
        }
        String type = a.getInputOutput();
        if (ConsoleCst.INPUT_ATTRIBUTE_TYPE.equals(type)) {
          inputMap.getAttributes().add(
              new fr.norsys.mapper.console.mapping.Attribute(a
View Full Code Here

TOP

Related Classes of fr.norsys.mapper.console.mapping.RegExp

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.