Examples of toFirstContentToken()


Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

        return rc;
    }

    private String toReferenceId(EndpointReferenceType subscriptionReference) {
        XmlCursor cursor = subscriptionReference.getReferenceProperties().newCursor();
        cursor.toFirstContentToken();
        String ref = cursor.getTextValue();
        return ref;
    }

    public PauseSubscriptionResponseDocument pauseSubcription(PauseSubscriptionDocument request, EndpointReferenceType resource) {
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

        GetResourcePropertyResponseDocument response = broker.getResourceProperty(null, request);
        System.out.println(response);
        assertNotNull(response);
        XmlCursor cursor = response.newCursor();
        cursor.toChild(property);
        cursor.toFirstContentToken();
        assertEquals("false", cursor.getTextValue());
    }
   
    public void XtestSendNotify() throws Exception {
       
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

   
    public GetResourcePropertyResponseDocument getResourceProperty(EndpointReferenceType resource, GetResourcePropertyDocument request) {
        GetResourcePropertyResponseDocument responseDoc = GetResourcePropertyResponseDocument.Factory.newInstance();
        GetResourcePropertyResponse response = responseDoc.addNewGetResourcePropertyResponse();
        XmlCursor cursor = response.newCursor();
        cursor.toFirstContentToken();

        XmlObject[] objects = resourceProperties.selectChildren(request.getGetResourceProperty());
        for (int i = 0; i < objects.length; i++) {
            objects[i].newCursor().copyXml(cursor);
        }       
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

                }
            }
        }
        // Copy the content into the XmlAttributeType
        XmlCursor loginCursor = lcDoc.newCursor();
        loginCursor.toFirstContentToken();
        XmlCursor destination = config.newCursor();
        destination.toNextToken();
        loginCursor.moveXml(destination);
        loginCursor.dispose();
        destination.dispose();
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

      // XmlObject object = XmlObject.Factory.parse(
      // openSequenceMessageContent );
      XmlObject object = XmlUtils.createXmlObject( openSequenceMessageContent );
      XmlCursor cursor = object.newCursor();

      cursor.toFirstContentToken();
      cursor.toFirstChild();
      cursor.toNextSibling();

      cursor.toNextToken();
      cursor.insertNamespace( "wsrm", wsrmNamespace );
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

      Response response = wsdlSubmit.getResponse();
      String responseContent = response.getContentAsString();
      // XmlObject xml = XmlObject.Factory.parse( responseContent );
      XmlObject xml = XmlUtils.createXmlObject( responseContent );
      XmlCursor cursor = xml.newCursor();
      cursor.toFirstContentToken();
      cursor.toFirstChild();
      cursor.toNextSibling();
      cursor.toFirstChild();
      cursor.toFirstChild();
      String sequenceIdentifier = cursor.getTextValue();
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

        // XmlObject object = XmlObject.Factory.parse(
        // openSequenceMessageContent );
        XmlObject object = XmlUtils.createXmlObject( openSequenceMessageContent );
        XmlCursor cursor = object.newCursor();

        cursor.toFirstContentToken();
        cursor.toFirstChild();
        cursor.toNextSibling();

        cursor.toNextToken();
        cursor.insertNamespace( "wsrm", wsrmNamespace );
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

      // XmlObject object = XmlObject.Factory.parse(
      // terminateSequenceRequestContent );
      XmlObject object = XmlUtils.createXmlObject( terminateSequenceRequestContent );
      XmlCursor cursor = object.newCursor();

      cursor.toFirstContentToken();
      cursor.toFirstChild();
      cursor.toNextSibling();

      cursor.toNextToken();
      cursor.insertNamespace( "wsrm", wsrmNamespace );
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

      // XmlObject object = XmlObject.Factory.parse(
      // openSequenceMessageContent );
      XmlObject object = XmlUtils.createXmlObject( openSequenceMessageContent );
      XmlCursor cursor = object.newCursor();

      cursor.toFirstContentToken();
      cursor.toFirstChild();
      cursor.toNextSibling();

      cursor.toNextToken();
      cursor.insertNamespace( "wsrm", wsrmNamespace );
View Full Code Here

Examples of org.apache.xmlbeans.XmlCursor.toFirstContentToken()

          throw new XmlException( "Required attribute missing!" );
      }
    }
    cursor.pop();
    if( !cursor.toFirstChild() )
      cursor.toFirstContentToken();
    if( !context.getAttribute( "nil" ).equals( "true" ) )
      validateContent( context );
    completed = true;
    return 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.