com.oxygenxml.validate.nvdl
Class ValidateAction

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

 class ValidateAction
extends NoResultAction

Validate no result action.


Field Summary
private  Schema schema
          The schema to validate with.
 
Constructor Summary
ValidateAction(ModeUsage modeUsage, Schema schema)
          Creates a validate action.
 
Method Summary
(package private)  NoResultAction changeCurrentMode(Mode mode)
          Get a new validate action with a mode usage with the current mode changed.
 boolean equals(Object obj)
          Checks if this action is equal with a given action.
 int hashCode()
          Computes a hashCode.
(package private)  void perform(SectionState state)
          Perform this action on the section state.
 
Methods inherited from class com.oxygenxml.validate.nvdl.Action
getModeUsage
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schema

private final Schema schema
The schema to validate with.

Constructor Detail

ValidateAction

ValidateAction(ModeUsage modeUsage,
               Schema schema)
Creates a validate action.

Parameters:
modeUsage - The mode usage.
schema - The schema.
Method Detail

perform

void perform(SectionState state)
       throws SAXException
Perform this action on the section 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 validate 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.

equals

public boolean equals(Object obj)
Checks if this action is equal with a given action.

Overrides:
equals in class Action

hashCode

public int hashCode()
Computes a hashCode.

Overrides:
hashCode in class Action