Package org.apache.axiom.om.impl.jaxp

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


    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

* {@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

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

            this.setComplete(true);
        }
    }

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

   * @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

    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

    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

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

            this.setComplete(true);
        }
    }

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

TOP

Related Classes of org.apache.axiom.om.impl.jaxp.OMSource

Copyright © 2018 www.massapicom. 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.