com.oxygenxml.validate.nvdl
Class RejectAction

java.lang.Object
  extended by com.oxygenxml.validate.nvdl.Action
      extended by com.oxygenxml.validate.nvdl.NoResultAction
          extended by com.oxygenxml.validate.nvdl.RejectAction

 class RejectAction
extends NoResultAction

A no result action that rejects any element.


Constructor Summary
RejectAction(ModeUsage modeUsage)
          Creates a reject action.
 
Method Summary
(package private)  NoResultAction changeCurrentMode(Mode mode)
          Get a new reject action with a mode usage with the current mode changed.
(package private)  void perform(SectionState state)
          Perform this action on the session state.
 
Methods inherited from class com.oxygenxml.validate.nvdl.Action
equals, getModeUsage, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RejectAction

RejectAction(ModeUsage modeUsage)
Creates a reject action.

Parameters:
modeUsage - The mode usage.
Method Detail

perform

void perform(SectionState state)
       throws SAXException
Perform this action on the session state.

Specified by:
perform in class NoResultAction
Parameters:
state - The section state.
Throws:
SAXException - In case of errors.

changeCurrentMode

NoResultAction changeCurrentMode(Mode mode)
Get a new reject action with a mode usage with the current mode changed. This is useful when we have modes extending other modes as we need to get the actions from the base mode as actions on the new mode.

Specified by:
changeCurrentMode in class NoResultAction
Parameters:
mode - the new mode.
Returns:
A new no result action.