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

All Known Implementing Classes:
OMElementFactory

public interface OMContainerFactory

Extracts an OMContainer instance from a test file.


Field Summary
static OMContainerFactory DOCUMENT
           
 
Method Summary
 void addTestProperties(AxiomTestCase testCase)
           
 XMLStreamReader filter(XMLStreamReader reader)
          Filter the given stream so that its content matches the content of the container returned by getContainer(OMXMLParserWrapper).
 OMContainer getContainer(OMXMLParserWrapper builder)
          Extract the OMContainer from the given test file.
 InputSource getControl(InputStream testFileContent)
          Prepare a control document that has the same content as the container returned by getContainer(OMXMLParserWrapper).
 

Field Detail

DOCUMENT

static final OMContainerFactory DOCUMENT
Method Detail

addTestProperties

void addTestProperties(AxiomTestCase testCase)

getControl

InputSource getControl(InputStream testFileContent)
                       throws Exception
Prepare a control document that has the same content as the container returned by getContainer(OMXMLParserWrapper).

Parameters:
testFileContent - the content of the test file
Returns:
the InputSource for the control document
Throws:
Exception

getContainer

OMContainer getContainer(OMXMLParserWrapper builder)
Extract the OMContainer from the given test file.

Parameters:
builder - the builder for the test file
Returns:
the container

filter

XMLStreamReader filter(XMLStreamReader reader)
Filter the given stream so that its content matches the content of the container returned by getContainer(OMXMLParserWrapper).

Parameters:
reader - the original stream reader representing the content of the test file
Returns:
the filtered stream reader


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