org.apache.velocity.tools.config
Class XmlFactoryConfiguration

java.lang.Object
  extended by org.apache.velocity.tools.config.Configuration<C>
      extended by org.apache.velocity.tools.config.CompoundConfiguration<ToolboxConfiguration>
          extended by org.apache.velocity.tools.config.FactoryConfiguration
              extended by org.apache.velocity.tools.config.FileFactoryConfiguration
                  extended by org.apache.velocity.tools.config.XmlFactoryConfiguration

public class XmlFactoryConfiguration
extends FileFactoryConfiguration

Version:
$Id: XmlFactoryConfiguration.java 511959 2007-02-26 19:24:39Z nbubna $
Author:
Nathan Bubna

Field Summary
private  org.apache.commons.digester.RuleSet ruleSet
           
private  boolean supportOldXml
           
 
Fields inherited from class org.apache.velocity.tools.config.FactoryConfiguration
GENERIC_CONFIGURATION_PATH, STRUTS_CONFIGURATION_PATH, VIEW_CONFIGURATION_PATH
 
Constructor Summary
XmlFactoryConfiguration()
           
XmlFactoryConfiguration(boolean supportOldConfig)
           
 
Method Summary
 org.apache.commons.digester.RuleSet getRuleSet()
          Retrieves the rule set Digester should use to parse and load the toolbox for this manager.
 void read(java.io.InputStream input)
          Reads an XML document from an InputStream and uses it to configure this FactoryConfiguration.
 void setRuleSet(org.apache.commons.digester.RuleSet rules)
          Sets the RuleSet this loader will use to digest the xml toolbox.
 
Methods inherited from class org.apache.velocity.tools.config.FileFactoryConfiguration
read, read, read
 
Methods inherited from class org.apache.velocity.tools.config.FactoryConfiguration
addConfiguration, addData, addToolbox, createDefaultFactory, createFactory, findMatchingChild, getData, getDefault, getToolboxes, removeData, removeToolbox, toString, validate
 
Methods inherited from class org.apache.velocity.tools.config.CompoundConfiguration
addChild, addConfiguration, appendChildren, getChildren, hasChildren, removeChild
 
Methods inherited from class org.apache.velocity.tools.config.Configuration
addConfiguration, addProperty, appendProperties, getConvertableProperties, getProperties, getSimpleProperties, hasProperties, removeProperty, removeProperty, setProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ruleSet

private org.apache.commons.digester.RuleSet ruleSet

supportOldXml

private boolean supportOldXml
Constructor Detail

XmlFactoryConfiguration

public XmlFactoryConfiguration()

XmlFactoryConfiguration

public XmlFactoryConfiguration(boolean supportOldConfig)
Method Detail

setRuleSet

public void setRuleSet(org.apache.commons.digester.RuleSet rules)
Sets the RuleSet this loader will use to digest the xml toolbox.


getRuleSet

public org.apache.commons.digester.RuleSet getRuleSet()

Retrieves the rule set Digester should use to parse and load the toolbox for this manager.


read

public void read(java.io.InputStream input)
          throws java.io.IOException

Reads an XML document from an InputStream and uses it to configure this FactoryConfiguration.

Specified by:
read in class FileFactoryConfiguration
Parameters:
input - the InputStream to read from
Throws:
java.io.IOException


Copyright (c) 2003-2007 Apache Software Foundation