some code cleanup. removed unnecessary semikolons, unused vars, etc.
[mir.git] / source / mir / util / xml / AbstractSectionHandler.java
1 package mir.util.xml;
2
3 /**
4  *
5  * <p>Title: </p>
6  * <p>Description: </p>
7  * <p>Copyright: Copyright (c) 2003</p>
8  * <p>Company: </p>
9  * @author not attributable
10  * @version 1.0
11  */
12
13 public abstract class AbstractSectionHandler implements SectionHandler {
14   public void extra(String anExtraData) throws XMLParserExc, XMLParserFailure {
15   }
16
17   public SectionHandler startElement(XMLName aTag, java.util.Map anAttributes) throws XMLParserExc{
18     return startElement(aTag.getLocalName(), XMLReaderTool.convertXMLAttributeMap(anAttributes));
19   }
20
21   public SectionHandler startElement(String aLocalName, java.util.Map anAttributes) throws XMLParserExc{
22     return new AbstractSectionHandler() {};
23   }
24
25   public void endElement(SectionHandler aHandler) throws XMLParserExc{
26   }
27
28   public void startSection() throws XMLParserExc{
29   }
30
31   public void finishSection() throws XMLParserExc{
32   }
33
34   public void characters(String aCharacters) throws XMLParserExc{
35     if ( aCharacters.trim().length() > 0) {
36       throw new XMLParserExc("Text not allowed");
37     }
38   }
39 }