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 OMContainerFactorypublic InputSource getControl(InputStream testFileContent) throws Exception
OMContainerFactoryOMContainerFactory.getContainer(OMXMLParserWrapper).getControl in interface OMContainerFactorytestFileContent - the content of the test fileInputSource for the control documentExceptionpublic OMContainer getContainer(OMXMLParserWrapper builder)
OMContainerFactoryOMContainer from the given test file.getContainer in interface OMContainerFactorybuilder - the builder for the test filepublic XMLStreamReader filter(XMLStreamReader reader)
OMContainerFactoryOMContainerFactory.getContainer(OMXMLParserWrapper).filter in interface OMContainerFactoryreader - the original stream reader representing the content of the test fileCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.