org.xmlhammer
Class Module

java.lang.Object
  extended by org.xmlhammer.gui.util.JAXPSettings
      extended by org.xmlhammer.Module
Direct Known Subclasses:
SchemaValidatorModule, StylesheetValidatorModule, XMLValidatorModule, XPathSearchModule, XSLTModule

public abstract class Module
extends JAXPSettings

Put comment...

Version:
$Revision: 1.27 $, $Date: 2007/07/04 19:42:48 $
Author:
Edwin Dankert

Constructor Summary
Module(Preferences preferences, Project project, org.apache.log4j.Logger logger, boolean logSettings)
           
 
Method Summary
 void execute(StatusModel status, ResultModel result, java.net.URI sourceURI)
          Execute the module.
 void execute(StatusModel status, ResultModel result, java.net.URI sourceURI, java.net.URI resultURI)
           
 org.apache.xml.resolver.tools.CatalogResolver getCatalogResolver()
           
 javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
           
protected  org.apache.log4j.Logger getLogger()
           
 Preferences getPreferences()
           
 Project getProject()
           
 javax.xml.parsers.SAXParser getSAXParser()
           
 javax.xml.validation.Schema getSchema()
           
 javax.xml.validation.SchemaFactory getSchemaFactory(java.lang.String schemaLanguage)
           
 javax.xml.transform.TransformerFactory getTransformerFactory()
           
 javax.xml.xpath.XPath getXPath()
           
 boolean hasErrors()
           
 boolean hasFatal()
           
 boolean hasWarnings()
           
 boolean isLogSettings()
           
 boolean isResultEnabled()
           
protected  void logError(java.lang.Throwable t)
           
protected  void logError(java.net.URI base, org.xml.sax.SAXParseException exception)
           
protected  void logError(java.net.URI base, javax.xml.transform.TransformerException exception)
           
protected  void logFatal(java.lang.Throwable t)
           
protected  void logFatal(java.net.URI base, java.lang.Exception exception)
           
protected  void logSettings(java.lang.String info)
           
protected  void logWarning(java.net.URI base, org.xml.sax.SAXParseException exception)
           
protected  void logWarning(java.net.URI base, javax.xml.transform.TransformerException exception)
           
 
Methods inherited from class org.xmlhammer.gui.util.JAXPSettings
getDocumentBuilderFactoryAttributes, getDocumentBuilderFactoryFeatures, getDocumentBuilderFactorySettings, getSAXParserFactoryFeatures, getSAXParserFactoryProperties, getSAXParserSettings, getSchemaFactoryFeatures, getSchemaFactoryLanguageProperties, getSchemaFactoryProperties, getSchemaFactorySettings, getTransformerFactoryAttributes, getTransformerFactoryFeatures, getTransformerFactorySettings, getXPathFactoryFeatures, getXPathFactoryMappings, getXPathFactorySettings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Module

public Module(Preferences preferences,
              Project project,
              org.apache.log4j.Logger logger,
              boolean logSettings)
Method Detail

execute

public void execute(StatusModel status,
                    ResultModel result,
                    java.net.URI sourceURI)
             throws java.lang.Exception
Execute the module.

Parameters:
logger - the logger.
uri - the uri.
Throws:
java.lang.Exception

execute

public void execute(StatusModel status,
                    ResultModel result,
                    java.net.URI sourceURI,
                    java.net.URI resultURI)
             throws java.lang.Exception
Throws:
java.lang.Exception

isResultEnabled

public boolean isResultEnabled()

isLogSettings

public boolean isLogSettings()

getXPath

public javax.xml.xpath.XPath getXPath()

getDocumentBuilderFactory

public javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
                                                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getSAXParser

public javax.xml.parsers.SAXParser getSAXParser()
                                         throws org.xml.sax.SAXException,
                                                javax.xml.parsers.ParserConfigurationException
Throws:
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

getSchemaFactory

public javax.xml.validation.SchemaFactory getSchemaFactory(java.lang.String schemaLanguage)

getSchema

public javax.xml.validation.Schema getSchema()
                                      throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getTransformerFactory

public javax.xml.transform.TransformerFactory getTransformerFactory()

logError

protected void logError(java.lang.Throwable t)

logFatal

protected void logFatal(java.lang.Throwable t)

getProject

public Project getProject()

getPreferences

public Preferences getPreferences()

getCatalogResolver

public org.apache.xml.resolver.tools.CatalogResolver getCatalogResolver()

logError

protected void logError(java.net.URI base,
                        org.xml.sax.SAXParseException exception)

logError

protected void logError(java.net.URI base,
                        javax.xml.transform.TransformerException exception)

logWarning

protected void logWarning(java.net.URI base,
                          org.xml.sax.SAXParseException exception)

logWarning

protected void logWarning(java.net.URI base,
                          javax.xml.transform.TransformerException exception)

logFatal

protected void logFatal(java.net.URI base,
                        java.lang.Exception exception)

getLogger

protected org.apache.log4j.Logger getLogger()

logSettings

protected void logSettings(java.lang.String info)

hasFatal

public boolean hasFatal()

hasErrors

public boolean hasErrors()

hasWarnings

public boolean hasWarnings()


Copyright 2005-2005-2008 Edwin Dankert. All Rights Reserved.