1 package com.thaiopensource.validate.nrl; 2 3 import org.xml.sax.SAXException ; 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 { 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 |