com.oxygenxml.validate.nvdl
Class UnwrapAction
java.lang.Object
com.oxygenxml.validate.nvdl.Action
com.oxygenxml.validate.nvdl.ResultAction
com.oxygenxml.validate.nvdl.UnwrapAction
class UnwrapAction
- extends ResultAction
Unwrap result action.
This action an element but allows its content.
UnwrapAction
UnwrapAction(ModeUsage modeUsage)
- Creates an unwrap action with a given mode usage.
- Parameters:
modeUsage
- The action mode usage.
perform
void perform(ContentHandler handler,
SectionState state)
- Perform this action.
- Specified by:
perform
in class ResultAction
- Parameters:
handler
- ???state
- the section state.
changeCurrentMode
ResultAction changeCurrentMode(Mode mode)
- Get a new unwrap 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 ResultAction
- Parameters:
mode
- The new current mode.
- Returns:
- The new result action.