org.htmlcleaner
Class ConfigFileTagProvider

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.htmlcleaner.ConfigFileTagProvider
All Implemented Interfaces:
Serializable, Cloneable, Map, ITagInfoProvider

public class ConfigFileTagProvider
extends HashMap
implements ITagInfoProvider

Configuration file tag provider - reads XML file in specified format and creates a Tag Provider. Used to create custom tag providers when used on the command line.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
ConfigFileTagProvider(File file)
           
ConfigFileTagProvider(InputSource inputSource)
           
ConfigFileTagProvider(URL url)
           
 
Method Summary
 TagInfo getTagInfo(String tagName)
           
static void main(String[] args)
          Generates code for tag provider class from specified configuration XML file.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ConfigFileTagProvider

public ConfigFileTagProvider(InputSource inputSource)

ConfigFileTagProvider

public ConfigFileTagProvider(File file)

ConfigFileTagProvider

public ConfigFileTagProvider(URL url)
Method Detail

getTagInfo

public TagInfo getTagInfo(String tagName)
Specified by:
getTagInfo in interface ITagInfoProvider

main

public static void main(String[] args)
                 throws IOException,
                        SAXException,
                        ParserConfigurationException
Generates code for tag provider class from specified configuration XML file. In order to create custom tag info provider, make config file and call this main method with the specified file. Output will be generated on the standard output. This way a custom tag provider (class CustomTagProvider) is generated from an XML file. An example XML file, "example.xml", can be found in the source distribution.

Parameters:
args -
Throws:
IOException
SAXException
ParserConfigurationException


Copyright © 2006-2013. All Rights Reserved.