Package speculoos.core

Examples of speculoos.core.MapperDefaults


  public class DefaultsValidHandler implements TagHandler {

    public void startElement(String uri, String localName, String qName,
        Attributes attributes) throws SAXException {
      MapperDefaults v = new MapperDefaults();
      String name = attributes.getValue("id");
      /* retrieve reference to map */
      String inull = attributes.getValue("map");
      try {
        Map def = (Map) maps.get(inull);
        if (def == null)
          throw new SAXException("Reference to undeclared map "
              + inull + " in validator " + name);
        /* set defaults */
        v.setDefaults(def);
        v.setTypeHelper(typeHelper);
      } catch (ClassCastException e) {
        throw new SAXException("Reference to " + inull
            + " is not a map");
      }
      push(v);
View Full Code Here

TOP

Related Classes of speculoos.core.MapperDefaults

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.