Examples of OMSource


Examples of org.apache.axiom.om.impl.jaxp.OMSource

            public void warning(SAXParseException exception) throws SAXException {
                throw exception;
            }
        });
        validator.validate(new OMSource(element));
        String pidString = element.getAttributeValue(new QName(SyslogConstants.PID));
        return new SyslogMessage(element.getAttributeValue(new QName(SyslogConstants.FACILITY)),
                                 element.getAttributeValue(new QName(SyslogConstants.SEVERITY)),
                                 element.getAttributeValue(new QName(SyslogConstants.TAG)),
                                 pidString == null ? -1 : Integer.parseInt(pidString),
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

    public static Source asSource(OMNode node) {
        // Note: Once we depend on JDK 1.6, we could also use StAXSource from JAXP 1.4.
        if (node instanceof NodeImpl) {
            return new DOMSource((NodeImpl)node);
        } else {
            return new OMSource((OMElement)node);
        }
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

* {@link SourceBuilder} implementation that transforms the AXIOM tree to SAX
* using {@link OMSource}.
*/
public class AXIOMSourceBuilder implements SourceBuilder {
    public OMSource getSource(OMElement node) {
        return new OMSource(node);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

            this.setComplete(true);
        }
    }
   
    public SAXSource getSAXSource(boolean cache) {
        return new OMSource(this);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

            this.setComplete(true);
        }
    }

    public SAXSource getSAXSource(boolean cache) {
        return new OMSource(this);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

   * @throws DataServiceFault
   */
  public OMElement transform(OMElement inputXML) throws DataServiceFault {
    try {
      ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
      Source xmlSource = new OMSource(inputXML);
      if (this.getTransformer() != null) {
        this.getTransformer().transform(xmlSource, new StreamResult(outputStream));
      } else {
        throw new DataServiceFault("XSLT transformer not initialized");
      }
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

    public XMLStreamReader getXMLStreamReader(boolean cache, OMXMLStreamReaderConfiguration configuration) {
        return OMContainerHelper.getXMLStreamReader((IContainer)this, cache, configuration);
    }

    public SAXSource getSAXSource(boolean cache) {
        return new OMSource((OMContainer)this);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

    public XMLStreamReader getXMLStreamReader(boolean cache, OMXMLStreamReaderConfiguration configuration) {
        return OMContainerHelper.getXMLStreamReader(this, cache, configuration);
    }

    public SAXSource getSAXSource(boolean cache) {
        return new OMSource(this);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

            this.setComplete(true);
        }
    }
   
    public SAXSource getSAXSource(boolean cache) {
        return new OMSource(this);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.jaxp.OMSource

            this.setComplete(true);
        }
    }

    public SAXSource getSAXSource(boolean cache) {
        return new OMSource(this);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.