KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thaiopensource > validate > nrl > RejectAction


1 package com.thaiopensource.validate.nrl;
2
3 import org.xml.sax.SAXException JavaDoc;
4 import com.thaiopensource.validate.nrl.Mode;
5 import com.thaiopensource.validate.nrl.ModeUsage;
6 import com.thaiopensource.validate.nrl.NoResultAction;
7
8 class RejectAction extends NoResultAction {
9   RejectAction(ModeUsage modeUsage) {
10     super(modeUsage);
11   }
12
13   void perform(SectionState state) throws SAXException JavaDoc {
14     final ModeUsage modeUsage = getModeUsage();
15     state.reject();
16     state.addChildMode(modeUsage, null);
17     state.addAttributeValidationModeUsage(modeUsage);
18   }
19
20   NoResultAction changeCurrentMode(Mode mode) {
21     return new RejectAction(getModeUsage().changeCurrentMode(mode));
22   }
23 }
24
Popular Tags