Package speculoos.valid

Examples of speculoos.valid.MapMandatoryValidator


  public class MandatoryValidHandler implements TagHandler {

    public void startElement(String uri, String localName, String qName,
        Attributes attributes) throws SAXException {
      MapMandatoryValidator v = new MapMandatoryValidator();
      String name = attributes.getValue("id");
      /* retrieve reference to map */
      String inull = attributes.getValue("map");
      Map def = (Map) maps.get(inull);
      if (def == null)
        throw new SAXException("Reference to undeclared map " + inull
            + " in validator " + name);
      v.setMandatory(def);
      v.setTypeHelper(typeHelper);
      push(v);
    }
View Full Code Here


   *             {@link speculoos.jndi.valid.MapMandatoryValidator}.
   *
   */
  public void setInput(Map map) {
    /* create mandatory validator */
    inputChain.addMapper(new MapMandatoryValidator(map));
  }
View Full Code Here

TOP

Related Classes of speculoos.valid.MapMandatoryValidator

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.