com.oxygenxml.validate.nvdl
Class AllowAction
java.lang.Object
com.oxygenxml.validate.nvdl.Action
com.oxygenxml.validate.nvdl.NoResultAction
com.oxygenxml.validate.nvdl.AllowAction
class AllowAction
- extends NoResultAction
An action that allows any element.
Constructor Summary |
AllowAction(ModeUsage modeUsage)
Creates this no result action with a given mode usage. |
AllowAction
AllowAction(ModeUsage modeUsage)
- Creates this no result action with a given mode usage.
- Parameters:
modeUsage
- The mode usage.
perform
void perform(SectionState state)
- Perform this action on the section state.
- Specified by:
perform
in class NoResultAction
- Parameters:
state
- The section state.
changeCurrentMode
NoResultAction changeCurrentMode(Mode mode)
- Get a new allow 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.