Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMFactory.createOMText()


                    OMElement parms = fac.createOMElement(DEFAULT_QUEUE_CONNECTION_FACTORY, null);                   

                    for ( String key : jmsProps.keySet() ) {
                        OMElement param = fac.createOMElement("parameter", null);
                        param.addAttribute( "name", key, null );
                        param.addChild(fac.createOMText(param, jmsProps.get(key)));
                        parms.addChild(param);
                    }
                   
                    Parameter queueConnectionFactory = new Parameter(DEFAULT_QUEUE_CONNECTION_FACTORY, parms);
                    trsIn.addParameter( queueConnectionFactory );
View Full Code Here


        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace omNs = fac.createOMNamespace("http://echo.services.wsas.wso2.org", "my");
        OMElement method = fac.createOMElement("echoOMElement", omNs);
        OMElement value = fac.createOMElement("myValue", omNs);
        value.addChild(
                fac.createOMText(value, "Isaac Asimov, The Foundation Trilogy"));
        method.addChild(value);
        return method;
    }

    protected OMElement createCalculatorPayload() {
View Full Code Here

      OMElement sqlEl = fac.createOMElement("sql", null);
      sqlEl.setText(this.getSql().trim());
      queryEl.addChild(sqlEl);
    } else if (this.getSparql() != null) {
      OMElement sparqlEl = fac.createOMElement("sparql", null);
      OMTextImpl omText = (OMTextImpl) fac.createOMText(this.getSparql());
      omText.setType(XMLStreamConstants.CDATA);
      sparqlEl.addChild(omText)
      queryEl.addChild(sparqlEl);
    } else if (this.getExcel() != null) {
      queryEl.addChild(this.getExcel().buildXML());
View Full Code Here

            String encodedContent = Base64.encode(content);

            OMFactory factory = OMAbstractFactory.getOMFactory();

            OMElement contentEle = factory.createOMElement(new QName("content"));
            OMText contentText = factory.createOMText(encodedContent);
            contentEle.addChild(contentText);

            contentEle.serialize(xmlWriter);

            xmlWriter.writeEndElement(); // to end resource tag.
View Full Code Here

            CollectionImpl collection = (CollectionImpl) resource;
            resourceDAO.fillChildren(collection, 0, -1);
            String childPaths[] = collection.getChildren();

            xmlWriter.writeStartElement(DumpConstants.CHILDREN);
            OMText emptyText = factory.createOMText("");
            emptyText.serialize(xmlWriter);
            xmlWriter.flush();
            for (String childPath : childPaths) {
                // we would be writing the start element of the child and its name here.
                try {
View Full Code Here

        XMLOutputFactory xof = XMLOutputFactory.newInstance();
        XMLStreamWriter xmlWriter = xof.createXMLStreamWriter(writer);

        xmlWriter.writeStartElement("wrapper");
        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMText emptyText = factory.createOMText("");
        emptyText.serialize(xmlWriter);
        xmlWriter.flush();

        writer.write("<resource name=\"abc\"");
        writer.flush();
View Full Code Here

        XMLOutputFactory xof = XMLOutputFactory.newInstance();
        XMLStreamWriter xmlWriter = xof.createXMLStreamWriter(writer);

        xmlWriter.writeStartElement("wrapper");
        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMText emptyText = factory.createOMText("");
        emptyText.serialize(xmlWriter);
        xmlWriter.flush();

        writer.write("<resource name=\"abc\"");
        writer.flush();
View Full Code Here

        XMLOutputFactory xof = XMLOutputFactory.newInstance();
        XMLStreamWriter xmlWriter = xof.createXMLStreamWriter(writer);

        xmlWriter.writeStartElement("wrapper");
        OMFactory factory = OMAbstractFactory.getOMFactory();
        OMText emptyText = factory.createOMText("");
        emptyText.serialize(xmlWriter);
        xmlWriter.flush();

        writer.write("<resource name=\"abc\"");
        writer.flush();
View Full Code Here

            if (xpathConfig.getNameSpaces() != null) {
                for (String ns : xpathConfig.getNameSpaces()) {
                    OMElement namespaceElement = factory.createOMElement(ActivityPublisherConstants.XPATH_NAMESPACE,
                            activityNamespace);
                    factory.createOMText(namespaceElement, ns);
                    namespacesElement.addChild(namespaceElement);
                }
            }

View Full Code Here

            xpathExpressionsElement.addChild(xpathExpressionElement);
        }

        OMElement activityNameElement = factory
                .createOMElement(ActivityPublisherConstants.ACTIVITY_DATA_ELEMENT_ACTIVITY_NAME, activityNamespace);
        factory.createOMText(activityNameElement, activityName);

        OMElement activityDescriptionElement = factory
                .createOMElement(ActivityPublisherConstants.ACTIVITY_DATA_ELEMENT_ACTIVITY_DESCRIPTION, activityNamespace);
        factory.createOMText(activityDescriptionElement, activityDescription);
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.