cz.zcu.validationserver.output
Class XMLResultOutput

java.lang.Object
  extended by cz.zcu.validationserver.output.XMLResultOutput
All Implemented Interfaces:
CustomOutput

public class XMLResultOutput
extends java.lang.Object
implements CustomOutput

Trida zapisuje vysledek validace do specialniho XML souboru urceneho pro hromadne zpracovani v PPA1


Field Summary
private static java.lang.String EL_CAS
           
private static java.lang.String EL_NAZEV
           
private static java.lang.String EL_SOUBOR
           
private static java.lang.String EL_VYSLEDEK
           
private static java.lang.String EL_VYSLEDKY
           
private  java.lang.String fileName
           
static java.lang.String KEY_XML_RESULT_FILE
           
private static Logger logger
           
private static java.lang.String MEZERA
           
 
Constructor Summary
XMLResultOutput()
           
 
Method Summary
 void close()
          Je volano pred zastavenim serveru
 void initialize(ValidationDomain domain)
          Inicializace, je volano pri nacteni domeny.
 void perform(FullValidationResult result)
          Je volano po provedeni validace.
private  void writeItem(java.io.PrintStream p, java.lang.String nazev, boolean vysledek, java.util.Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_XML_RESULT_FILE

public static final java.lang.String KEY_XML_RESULT_FILE
See Also:
Constant Field Values

logger

private static final Logger logger

EL_VYSLEDKY

private static final java.lang.String EL_VYSLEDKY
See Also:
Constant Field Values

EL_SOUBOR

private static final java.lang.String EL_SOUBOR
See Also:
Constant Field Values

EL_NAZEV

private static final java.lang.String EL_NAZEV
See Also:
Constant Field Values

EL_CAS

private static final java.lang.String EL_CAS
See Also:
Constant Field Values

EL_VYSLEDEK

private static final java.lang.String EL_VYSLEDEK
See Also:
Constant Field Values

MEZERA

private static final java.lang.String MEZERA
See Also:
Constant Field Values

fileName

private java.lang.String fileName
Constructor Detail

XMLResultOutput

public XMLResultOutput()
Method Detail

writeItem

private void writeItem(java.io.PrintStream p,
                       java.lang.String nazev,
                       boolean vysledek,
                       java.util.Date date)

initialize

public void initialize(ValidationDomain domain)
                throws java.lang.Exception
Description copied from interface: CustomOutput
Inicializace, je volano pri nacteni domeny. Vyhodi-li metoda vyjimku, je preruseno nabihani serveru.

Specified by:
initialize in interface CustomOutput
Throws:
java.lang.Exception

perform

public void perform(FullValidationResult result)
Description copied from interface: CustomOutput
Je volano po provedeni validace.

Specified by:
perform in interface CustomOutput

close

public void close()
Description copied from interface: CustomOutput
Je volano pred zastavenim serveru

Specified by:
close in interface CustomOutput


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