org.apache.woden.ant
Class Report

java.lang.Object
  extended by org.apache.woden.ant.XMLWriter
      extended by org.apache.woden.ant.Report
All Implemented Interfaces:
ErrorHandler

public class Report
extends XMLWriter
implements ErrorHandler

The Report class writes an XML file that reports the results of validating a set of WSDL files.

Author:
Arthur Ryman (ryman@ca.ibm.com, arthur.ryman@gmail.com)

Constructor Summary
Report(java.io.PrintWriter out)
          Constructs a Report writer.
 
Method Summary
 void beginReport()
           
 void beginWsdl(java.lang.String uri)
           
 void closeReport()
          Ends the report and closes the output writer.
 void endReport()
           
 void endWsdl()
           
 void error(ErrorInfo errorInfo)
           
 void fatalError(ErrorInfo errorInfo)
           
static Report openReport(java.io.File report)
          Creates a report writer and writes the document root.
 void warning(ErrorInfo errorInfo)
           
 void write(java.lang.String tag, ErrorInfo errorInfo)
           
 void write(java.lang.String tag, ErrorLocator errorLocator)
           
 void write(java.lang.String tag, java.lang.Exception e)
           
 
Methods inherited from class org.apache.woden.ant.XMLWriter
beginElement, beginElement, close, element, emptyElement, endAllElements, endElement, escape, lookup, register, write, write, write, write, write, xmlDeclaration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Report

public Report(java.io.PrintWriter out)
Constructs a Report writer.

Parameters:
out - the output writer or null
Method Detail

openReport

public static Report openReport(java.io.File report)
Creates a report writer and writes the document root.

Parameters:
report - the reort file
Returns:
the report writer

closeReport

public void closeReport()
Ends the report and closes the output writer.


beginReport

public void beginReport()

endReport

public void endReport()

beginWsdl

public void beginWsdl(java.lang.String uri)

endWsdl

public void endWsdl()

warning

public void warning(ErrorInfo errorInfo)
Specified by:
warning in interface ErrorHandler

error

public void error(ErrorInfo errorInfo)
Specified by:
error in interface ErrorHandler

fatalError

public void fatalError(ErrorInfo errorInfo)
Specified by:
fatalError in interface ErrorHandler

write

public void write(java.lang.String tag,
                  ErrorInfo errorInfo)

write

public void write(java.lang.String tag,
                  ErrorLocator errorLocator)

write

public void write(java.lang.String tag,
                  java.lang.Exception e)


Copyright © 2007. All Rights Reserved.