net.sf.logdistiller.xml
Class DOMConfigurator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMConfigurator
public DOMConfigurator()
DOMConfigurator
public DOMConfigurator(Map overriddenProperties)
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.