net.sf.logdistiller.xml
Class DOMConfigurator

java.lang.Object
  extended by net.sf.logdistiller.xml.DOMConfigurator

public class DOMConfigurator
extends Object

This class parses an XML rules configuration file and creates corresponding LogDistiller object.

See Also:
LogDistiller

Constructor Summary
DOMConfigurator()
           
DOMConfigurator(Map overriddenProperties)
           
 
Method Summary
protected  void addWarning(String warning)
           
protected  boolean begin()
          begin configuration, if not currently in progress
protected  LogDistiller.Report[] buildCompatibilityReports(Map params)
           
protected  void end(boolean really)
           
 LogDistiller parse(Element element)
           
protected  Attributes parseAttributes(String paramAttributes, Element element)
           
protected  LogDistiller.Category[] parseCategories(Iterator iter)
           
protected  Condition parseCondition(Element element)
           
protected  Condition[] parseConditions(Iterator iter)
           
protected  Attributes.Extension parseExtension(Element element)
           
protected  Attributes.Extension[] parseExtensions(Iterator iter)
           
protected  LogDistiller.Group parseGroup(Element element, Map categories)
           
protected  LogDistiller.Group[] parseGroups(Iterator iter, LogDistiller.Category[] categories)
           
protected  LogDistiller.LogType parseLogType(Element element)
           
protected  Match parseMatch(Element element)
           
protected  Match[] parseMatchs(Iterator iter)
           
protected  LogDistiller.Output parseOutput(Element element)
           
protected  Map parseParams(Iterator iter)
           
protected  LogDistiller.Plugin parsePlugin(Element element)
           
protected  LogDistiller.Plugin[] parsePlugins(Iterator iter)
           
protected  Map parseProperties(Iterator iter)
           
protected  LogDistiller.Report parseReport(Element element)
           
protected  LogDistiller.Report[] parseReports(Iterator iter)
           
 LogDistiller read(File f)
           
 LogDistiller read(File f, ErrorHandler errorHandler)
           
 LogDistiller read(InputSource inputSource)
           
 LogDistiller read(InputSource inputSource, ErrorHandler errorHandler)
           
 LogDistiller read(InputStream in)
           
 LogDistiller read(InputStream in, ErrorHandler errorHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMConfigurator

public DOMConfigurator()

DOMConfigurator

public DOMConfigurator(Map overriddenProperties)
Method Detail

read

public LogDistiller read(File f)
                  throws ParserConfigurationException,
                         IOException,
                         SAXException
Throws:
ParserConfigurationException
IOException
SAXException

read

public LogDistiller read(File f,
                         ErrorHandler errorHandler)
                  throws ParserConfigurationException,
                         IOException,
                         SAXException
Throws:
ParserConfigurationException
IOException
SAXException

read

public LogDistiller read(InputStream in)
                  throws ParserConfigurationException,
                         IOException,
                         SAXException
Throws:
ParserConfigurationException
IOException
SAXException

read

public LogDistiller read(InputStream in,
                         ErrorHandler errorHandler)
                  throws ParserConfigurationException,
                         IOException,
                         SAXException
Throws:
ParserConfigurationException
IOException
SAXException

read

public LogDistiller read(InputSource inputSource)
                  throws ParserConfigurationException,
                         IOException,
                         SAXException
Throws:
ParserConfigurationException
IOException
SAXException

begin

protected boolean begin()
begin configuration, if not currently in progress

Returns:
boolean true if really begin, false if configuration is already in progress

end

protected void end(boolean really)

addWarning

protected void addWarning(String warning)

read

public LogDistiller read(InputSource inputSource,
                         ErrorHandler errorHandler)
                  throws ParserConfigurationException,
                         IOException,
                         SAXException
Throws:
ParserConfigurationException
IOException
SAXException

parse

public LogDistiller parse(Element element)

parseProperties

protected Map parseProperties(Iterator iter)

parseLogType

protected LogDistiller.LogType parseLogType(Element element)

parseAttributes

protected Attributes parseAttributes(String paramAttributes,
                                     Element element)

parseExtensions

protected Attributes.Extension[] parseExtensions(Iterator iter)

parseExtension

protected Attributes.Extension parseExtension(Element element)

parseOutput

protected LogDistiller.Output parseOutput(Element element)

parseReports

protected LogDistiller.Report[] parseReports(Iterator iter)

parseReport

protected LogDistiller.Report parseReport(Element element)

buildCompatibilityReports

protected LogDistiller.Report[] buildCompatibilityReports(Map params)

parseParams

protected Map parseParams(Iterator iter)

parseCategories

protected LogDistiller.Category[] parseCategories(Iterator iter)

parseGroups

protected LogDistiller.Group[] parseGroups(Iterator iter,
                                           LogDistiller.Category[] categories)

parseGroup

protected LogDistiller.Group parseGroup(Element element,
                                        Map categories)

parseConditions

protected Condition[] parseConditions(Iterator iter)

parseCondition

protected Condition parseCondition(Element element)

parseMatchs

protected Match[] parseMatchs(Iterator iter)

parseMatch

protected Match parseMatch(Element element)

parsePlugins

protected LogDistiller.Plugin[] parsePlugins(Iterator iter)

parsePlugin

protected LogDistiller.Plugin parsePlugin(Element element)


Copyright © 2004-2009. All Rights Reserved.