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);
}