com.oxygenxml.validate.nvdl
Class AttachPlaceholderAction

java.lang.Object
  extended by com.oxygenxml.validate.nvdl.Action
      extended by com.oxygenxml.validate.nvdl.ResultAction
          extended by com.oxygenxml.validate.nvdl.AttachPlaceholderAction

 class AttachPlaceholderAction
extends ResultAction

Attach place holder result action. This action replaces a section with a placeholder element.


Constructor Summary
AttachPlaceholderAction(ModeUsage modeUsage)
          Creates an attachPlaceHolder action with a given mode usage.
 
Method Summary
(package private)  ResultAction changeCurrentMode(Mode mode)
          Get a new attach place holder action with a mode usage with the current mode changed.
(package private)  void perform(ContentHandler handler, SectionState state)
          Perform this action.
 
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

AttachPlaceholderAction

AttachPlaceholderAction(ModeUsage modeUsage)
Creates an attachPlaceHolder action with a given mode usage.

Parameters:
modeUsage - The action mode usage.
Method Detail

perform

void perform(ContentHandler handler,
             SectionState state)
Perform this action.

Specified by:
perform in class ResultAction
Parameters:
handler - the handler this action is performed on
state - the section state.

changeCurrentMode

ResultAction changeCurrentMode(Mode mode)
Get a new attach place holder 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.