001    package com.thaiopensource.validate.nrl;
002    
003    import com.thaiopensource.validate.Schema;
004    import com.thaiopensource.validate.nrl.ModeUsage;
005    import org.xml.sax.SAXException;
006    import org.xml.sax.ContentHandler;
007    
008    interface SectionState {
009      /**
010       *
011       * @param modeUsage
012       * @param handler may be null
013       */
014      void addChildMode(ModeUsage modeUsage, ContentHandler handler);
015      void addValidator(Schema schema, ModeUsage modeUsage);
016      /**
017       *
018       * @param handler must not be null
019       */
020      void addActiveHandler(ContentHandler handler, ModeUsage attributeModeUsage);
021      void addAttributeValidationModeUsage(ModeUsage modeUsage);
022      void reject() throws SAXException;
023    }