com.marsching.flexiparse.parser
Class ClasspathConfiguredParser

java.lang.Object
  extended by com.marsching.flexiparse.parser.SimpleParser
      extended by com.marsching.flexiparse.parser.XMLConfiguredParser
          extended by com.marsching.flexiparse.parser.ClasspathConfiguredParser
All Implemented Interfaces:
Parser

public class ClasspathConfiguredParser
extends XMLConfiguredParser

Parser implementation that loads the configuration using the context class loader.

Author:
Sebastian Marsching

Field Summary
 
Fields inherited from class com.marsching.flexiparse.parser.SimpleParser
documentBuilder, mappingConfigurations, nodeHandlers
 
Constructor Summary
ClasspathConfiguredParser()
          Default constructor, looks for configuration at "com/marsching/flexiparse/configuration/configuration.xml".
ClasspathConfiguredParser(String configurationLocation)
          Creates a parser instance using the specified configuration location.
 
Method Summary
 
Methods inherited from class com.marsching.flexiparse.parser.XMLConfiguredParser
addConfigurationSource, addConfigurationSource, addConfigurationSources
 
Methods inherited from class com.marsching.flexiparse.parser.SimpleParser
addElementMappingConfiguration, addNodeHandler, getElementMappingConfigurations, getHandlerOrder, getNodeHandlers, parse, parse, parse, parse, removeElementMappingConfiguration, removeNodeHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathConfiguredParser

public ClasspathConfiguredParser()
                          throws ParserException
Default constructor, looks for configuration at "com/marsching/flexiparse/configuration/configuration.xml".

Throws:
ParserException

ClasspathConfiguredParser

public ClasspathConfiguredParser(String configurationLocation)
                          throws ParserException
Creates a parser instance using the specified configuration location.

Parameters:
configurationLocation - location where to look for configuration files
Throws:
ParserException - if an error occurs while loading the configuration files


Copyright © 2008-2009. All Rights Reserved.