use of org.apache.axiom.ts.om.sourcedelement.util.PushOMDataSource in project webservices-axiom by apache.
the class TestDocument method createOMSourcedElement.
OMSourcedElement createOMSourcedElement(OMFactory factory, boolean push, boolean destructive) {
OMNamespace ns = factory.createOMNamespace(qname.getNamespaceURI(), qname.getPrefix());
OMDataSource ds;
if (push) {
ds = new PushOMDataSource(factory, getContent(), destructive);
} else {
ds = new PullOMDataSource(getContent(), destructive);
}
return factory.createOMElement(ds, qname.getLocalPart(), ns);
}
Aggregations