cz.zcu.validationserver.process.statements
Class ErrorStatement

java.lang.Object
  extended by cz.zcu.validationserver.process.statements.AbstractStatement
      extended by cz.zcu.validationserver.process.statements.ErrorStatement
All Implemented Interfaces:
ExecutableProcess, Statement
Direct Known Subclasses:
InfoStatement, WarningStatement

public class ErrorStatement
extends AbstractStatement

Created by IntelliJ IDEA. User: Lukas Date: 23.4.2007 Time: 23:24:11


Field Summary
private  int errorCode
           
private  java.lang.String key
           
private  ScriptStatement script
           
 
Constructor Summary
ErrorStatement()
           
 
Method Summary
 void execute(ValidationInfo info, FullValidationResult result, Context jsContext, Scriptable scope)
          Spusti akce na tomto objektu.
 void loadFromElement(Element element, ValidationProcess process, Block block)
          Nacte objekt z XML
protected  void raiseIt(ValidationInfo info, FullValidationResult result, java.lang.String textChyby)
          Metoda je pak zdedena Warningem, ktery se jinak chova uplne stejne
 
Methods inherited from class cz.zcu.validationserver.process.statements.AbstractStatement
getColumnNumber, getLineNumber, getMyProcess, getParent, getPath, getStatementName, popPosition, popPosition, pushPosition, pushPosition, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private java.lang.String key

script

private ScriptStatement script

errorCode

private int errorCode
Constructor Detail

ErrorStatement

public ErrorStatement()
Method Detail

loadFromElement

public void loadFromElement(Element element,
                            ValidationProcess process,
                            Block block)
                     throws XMLLoadException
Description copied from interface: Statement
Nacte objekt z XML

Specified by:
loadFromElement in interface Statement
Overrides:
loadFromElement in class AbstractStatement
Parameters:
element - XML element odkud nacist
process - K jakemu procesu tenhle statement patri
block - K jakemu bloku patri
Throws:
XMLLoadException - Kdyz to nevyjde

execute

public void execute(ValidationInfo info,
                    FullValidationResult result,
                    Context jsContext,
                    Scriptable scope)
Description copied from interface: ExecutableProcess
Spusti akce na tomto objektu.

Parameters:
info - Informace o validaci
result - Vysledek validace
jsContext - JS Context (dle Rhino doc by mel byt prave jeden pro vlakno)
scope - Javascript scope, ve kterem to bezi. Objekty si mohou udelat svoje scope a tohle nastavit treba jako parent... nebo ho mohou pouzit rovnou

raiseIt

protected void raiseIt(ValidationInfo info,
                       FullValidationResult result,
                       java.lang.String textChyby)
Metoda je pak zdedena Warningem, ktery se jinak chova uplne stejne

Parameters:
textChyby -


Copyright © 2007 University of West Bohemia, KIV, author Lukas Valenta (lvalenta at civ.zcu.cz). All Rights Reserved. Build date 20110415.