public class OMElementFactory extends java.lang.Object implements OMContainerFactory
| Modifier and Type | Field and Description |
|---|---|
private boolean |
detached |
DOCUMENT| Constructor and Description |
|---|
OMElementFactory(boolean detached) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestProperties(AxiomTestCase testCase) |
javax.xml.stream.XMLStreamReader |
filter(javax.xml.stream.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. |
org.xml.sax.InputSource |
getControl(java.io.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 org.xml.sax.InputSource getControl(java.io.InputStream testFileContent)
throws java.lang.Exception
OMContainerFactoryOMContainerFactory.getContainer(OMXMLParserWrapper).getControl in interface OMContainerFactorytestFileContent - the content of the test fileInputSource for the control documentjava.lang.Exceptionpublic OMContainer getContainer(OMXMLParserWrapper builder)
OMContainerFactoryOMContainer from the given test file.getContainer in interface OMContainerFactorybuilder - the builder for the test filepublic javax.xml.stream.XMLStreamReader filter(javax.xml.stream.XMLStreamReader reader)
OMContainerFactoryOMContainerFactory.getContainer(OMXMLParserWrapper).filter in interface OMContainerFactoryreader - the original stream reader representing the content of the test file