org.apache.axiom.ts.om.container
Interface BuilderFactory


public interface BuilderFactory

Defines a strategy to create an OMXMLParserWrapper from a given test file.


Field Summary
static BuilderFactory DOM
          Creates an OMXMLParserWrapper by parsing the input using DOM and passing it as a DOM tree to Axiom.
static BuilderFactory PARSER
          Creates an OMXMLParserWrapper directly from the given InputSource, i.e. let instantiate an appropriate parser.
static BuilderFactory SAX
          Creates an OMXMLParserWrapper by passing a SAXSource to Axiom.
 
Method Summary
 void addTestProperties(AxiomTestCase testCase)
           
 void configureXMLStreamReaderComparator(org.apache.axiom.testutils.stax.XMLStreamReaderComparator comparator)
           
 OMXMLParserWrapper getBuilder(OMMetaFactory metaFactory, InputSource inputSource)
           
 

Field Detail

PARSER

static final BuilderFactory PARSER
Creates an OMXMLParserWrapper directly from the given InputSource, i.e. let instantiate an appropriate parser.


DOM

static final BuilderFactory DOM
Creates an OMXMLParserWrapper by parsing the input using DOM and passing it as a DOM tree to Axiom.


SAX

static final BuilderFactory SAX
Creates an OMXMLParserWrapper by passing a SAXSource to Axiom.

Method Detail

configureXMLStreamReaderComparator

void configureXMLStreamReaderComparator(org.apache.axiom.testutils.stax.XMLStreamReaderComparator comparator)

addTestProperties

void addTestProperties(AxiomTestCase testCase)

getBuilder

OMXMLParserWrapper getBuilder(OMMetaFactory metaFactory,
                              InputSource inputSource)
                              throws Exception
Throws:
Exception


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.