Examples of newCursor()


Examples of com.eviware.soapui.config.TestStepConfig.newCursor()

    assertEquals( 3, testSteps.size() );
    assertEquals( testSteps.get( 0 ), step1 );
    assertEquals( testSteps.get( 1 ), step2 );
    assertEquals( testSteps.get( 2 ), step3 );

    XmlCursor cursor1 = step3.newCursor();
    XmlCursor cursor2 = step2.newCursor();

    cursor1.moveXml( cursor2 );

    cursor1.dispose();
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsResourceProperties.ResourcePropertyValueChangeNotificationType.NewValue.newCursor()

      try
      {
         NotificationMessageHolderType[] notifMsg = notify.getNotificationMessage();
         ResourcePropertyValueChangeNotificationDocument valChanged = (ResourcePropertyValueChangeNotificationDocument) XmlObject.Factory.parse((Node) notifMsg[0].getMessage());
         NewValue newValue = valChanged.getResourcePropertyValueChangeNotification().getNewValue();
         XmlCursor cursor = newValue.newCursor();
         cursor.toFirstChild();
         IntegerMetric newValueIntegerMetric = (IntegerMetric) cursor.getObject();

         Integer newTemp = new Integer(newValueIntegerMetric.getStringValue());
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsTopics.SimpleTopicExpression.newCursor()

         xmlCursor.toEndToken(  );
         xmlCursor.insertNamespace( CUSTOM_NAMESPACE_PREFIX, targetNamespace );

         SimpleTopicExpression simpleTopicExpression = SimpleTopicExpression.Factory.newInstance(  );
         simpleTopicExpression.setStringValue( CUSTOM_NAMESPACE_PREFIX + ":" + name );
         XmlCursor simpleTopicExpressionTypeCursor = simpleTopicExpression.newCursor(  );
         simpleTopicExpressionTypeCursor.toNextToken(  );
         simpleTopicExpressionTypeCursor.copyXml( xmlCursor );
         simpleTopicExpressionTypeCursor.dispose(  );
         xmlCursor.dispose(  );
      }
View Full Code Here

Examples of org.activemq.ws.xmlbeans.addressing.v2003_03.ReferencePropertiesType.newCursor()

   
    private EndpointReferenceType toEndpointReference(String ref) {
        EndpointReferenceType rc = EndpointReferenceType.Factory.newInstance();
        rc.addNewAddress().setStringValue(address);
        ReferencePropertiesType props = rc.addNewReferenceProperties();
        XmlCursor cursor = props.newCursor();
        cursor.setTextValue(ref);
        return rc;
    }

    private String toReferenceId(EndpointReferenceType subscriptionReference) {
View Full Code Here

Examples of org.activemq.ws.xmlbeans.notification.base.TopicExpressionType.newCursor()

    private static final String SIMPLE_DIALECT = "http://www.ibm.com/xmlns/stdwip/web-services/WSTopics/TopicExpression/simple";
   
    static public TopicExpressionType toTopicExpression( ActiveMQTopic topic ) {
        TopicExpressionType rc = TopicExpressionType.Factory.newInstance();
        rc.setDialect(SIMPLE_DIALECT);
        XmlCursor cursor = rc.newCursor();
        cursor.setTextValue(topic.getPhysicalName());
        return rc;
    }
   
    static public ActiveMQTopic toActiveMQTopic(TopicExpressionType[] topicArray) {
View Full Code Here

Examples of org.activemq.ws.xmlbeans.resource.properties.GetResourcePropertyResponseDocument.newCursor()

        request.setGetResourceProperty( property );
        System.out.println(request);
        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());
    }
   
View Full Code Here

Examples of org.activemq.ws.xmlbeans.resource.properties.GetResourcePropertyResponseDocument.GetResourcePropertyResponse.newCursor()

    }
   
    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.airavata.workflow.tracking.types.WorkflowInitializedDocument.newCursor()

public class Test {
    public static void main(String[] args) {
        WorkflowInitializedDocument activity = WorkflowInitializedDocument.Factory.newInstance();
        BaseNotificationType activityType = activity.addNewWorkflowInitialized();

        XmlCursor c = activity.newCursor();
        c.toNextToken();

        System.out.println(c.getObject().getClass());

        System.out.println(((BaseNotificationType) c.getObject()).getDescription());
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.EnvironmentType.newCursor()

        EnvironmentBuilder.mergeEnvironments(oldEnvironment, newEnvironment);
        EnvironmentType environmentType = EnvironmentBuilder.buildEnvironmentType(oldEnvironment);

        xmlCursor.beginElement(ENVIRONMENT_QNAME);
        XmlCursor element = environmentType.newCursor();

        try {
            element.copyXmlContents(xmlCursor);
        }
        finally {
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ModuleType.newCursor()

        root.setServiceArray(new AbstractServiceType[]{realm});


        //Above code inserts gbean using xsi:type=dep:GBeanType.  We also need to account for the substitution group
        //by changing the qname:
        XmlCursor gbeanCursor = root.newCursor();
        try {
            if (!gbeanCursor.toChild(ServiceDocument.type.getDocumentElementName())) {
                throw new RuntimeException("Could not find service element");
            }
            gbeanCursor.setName(GBEAN_QNAME);
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.