public class OMElementFactory extends Object implements OMContainerFactory
DOCUMENT
Constructor and Description |
---|
OMElementFactory(boolean detached) |
Modifier and Type | Method and Description |
---|---|
void |
addTestProperties(AxiomTestCase testCase) |
XMLStreamReader |
filter(XMLStreamReader reader)
Filter the given stream so that its content matches the content of the container returned by
OMContainerFactory.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
OMContainerFactory.getContainer(OMXMLParserWrapper) . |
public void addTestProperties(AxiomTestCase testCase)
addTestProperties
in interface OMContainerFactory
public InputSource getControl(InputStream testFileContent) throws Exception
OMContainerFactory
OMContainerFactory.getContainer(OMXMLParserWrapper)
.getControl
in interface OMContainerFactory
testFileContent
- the content of the test fileInputSource
for the control documentException
public OMContainer getContainer(OMXMLParserWrapper builder)
OMContainerFactory
OMContainer
from the given test file.getContainer
in interface OMContainerFactory
builder
- the builder for the test filepublic XMLStreamReader filter(XMLStreamReader reader)
OMContainerFactory
OMContainerFactory.getContainer(OMXMLParserWrapper)
.filter
in interface OMContainerFactory
reader
- the original stream reader representing the content of the test fileCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.