org.specrunner.source.core
Class BuilderFactoryImpl

java.lang.Object
  extended by org.specrunner.source.core.EncodedImpl
      extended by org.specrunner.source.core.BuilderFactoryImpl
All Implemented Interfaces:
IBuilderFactory, IEncoded

public class BuilderFactoryImpl
extends EncodedImpl
implements IBuilderFactory

Default builder implementation.

Author:
Thiago Santos.

Field Summary
 
Fields inherited from interface org.specrunner.source.IEncoded
DEFAULT_ENCODING, FEATURE_ENCODING
 
Constructor Summary
BuilderFactoryImpl()
           
 
Method Summary
protected  org.apache.xerces.parsers.AbstractSAXParser getParser(Map<String,Object> properties)
          Get the parser.
 nu.xom.Builder newBuilder(Map<String,Object> properties)
          Get a XOM builder.
 
Methods inherited from class org.specrunner.source.core.EncodedImpl
getEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.specrunner.source.IEncoded
getEncoding
 

Constructor Detail

BuilderFactoryImpl

public BuilderFactoryImpl()
Method Detail

newBuilder

public nu.xom.Builder newBuilder(Map<String,Object> properties)
                          throws SourceException
Description copied from interface: IBuilderFactory
Get a XOM builder.

Specified by:
newBuilder in interface IBuilderFactory
Parameters:
properties - Expected builder properties.
Returns:
A builder.
Throws:
SourceException - On builder creation errors.

getParser

protected org.apache.xerces.parsers.AbstractSAXParser getParser(Map<String,Object> properties)
                                                         throws Exception
Get the parser.

Parameters:
properties - The properties.
Returns:
A SaxParser.
Throws:
Exception - On get parser errors.


Copyright © 2014. All rights reserved.