Examples of OMElement


Examples of org.apache.axiom.om.OMElement

            }

            Iterator messageStores = FileUtils.iterateFiles(messageStoresDir, extensions, false);
            while (messageStores.hasNext()) {
                File file = (File) messageStores.next();
                OMElement document = getOMElement(file);
                MessageStore messageStore = SynapseXMLConfigurationFactory.defineMessageStore(
                        synapseConfig, document, properties);
                if (messageStore != null) {
                    messageStore.setFileName(file.getName());
                    synapseConfig.getArtifactDeploymentStore().addArtifact(file.getAbsolutePath(),
View Full Code Here

Examples of org.apache.axis2.om.OMElement

  public static void printResult (SOAPEnvelope result) {
    try {
      XMLStreamWriter writer = XMLOutputFactory.newInstance()
          .createXMLStreamWriter(System.out);
      if (result != null){
        OMElement resultOM = result.getBody().getFirstChildWithName(new QName ("result"));
        System.out.println ("Result is:" + resultOM.getText());
      }else
        System.out.println("Result is null");
    } catch (XMLStreamException e) {
      e.printStackTrace();
    } catch (FactoryConfigurationError e) {
View Full Code Here

Examples of org.apache.ws.commons.om.OMElement

                binaryNode.setOptimize(!binaryNode.isOptimized());
            }
         else if (element.getLocalName().equalsIgnoreCase("EchoTest") && element.getNamespace().getName().equalsIgnoreCase("http://example.org/mtom/data")) {
            Iterator childrenIterator = element.getChildren();
            while (childrenIterator.hasNext()) {
                OMElement dataElement = (OMElement) childrenIterator.next();
                OMText binaryNode = (OMText)dataElement.getFirstOMChild();
                binaryNode.setOptimize(!binaryNode.isOptimized());
            }
        }
        return element;
    }
View Full Code Here

Examples of org.vectomatic.dom.svg.OMElement

   *
   * @param line Line with a write block indicator
   */
  public static void removeWriteBlock(OMElement line) {
   
    OMElement par = (OMElement) line.getParentNode();
    OMNodeList<OMElement> circles = par.getElementsByTagName("circle");
   
    for(int i=0; i < circles.getLength(); i++) {
      if (!circles.getItem(i).getAttribute(WRITE_BLOCK_ATTR).isEmpty()) {
        par.removeChild(circles.getItem(i));
        break;
      }
    }
  }
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.