Examples of newCursor()


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

    }

    public static TopicExpressionType toTopicExpression(String name) {
        TopicExpressionType rc = TopicExpressionType.Factory.newInstance();
        rc.setDialect(SIMPLE_DIALECT);
        XmlCursor cursor = rc.newCursor();
        cursor.setTextValue(name);
        return rc;
    }

View Full Code Here

Examples of org.servicemix.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.servicemix.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.w3.x2001.xmlSchema.SchemaDocument.newCursor()

        XmlOptions xmlOptions = SchemaConversionUtils.createXmlOptions(errors);
        SchemaDocument parsed = SchemaDocument.Factory.parse(element, xmlOptions);
        if (errors.size() != 0) {
            throw new XmlException(errors.toArray().toString());
        }
        XmlCursor cursor = parsed.newCursor();
        try {
            cursor.toFirstContentToken();
            for (Iterator namespaces = namespaceMap.entrySet().iterator(); namespaces.hasNext();) {
                Map.Entry entry = (Map.Entry) namespaces.next();
                cursor.insertNamespace((String) entry.getKey(), (String) entry.getValue());
View Full Code Here

Examples of org.woped.pnml.PnmlType.newCursor()

        for (int i = 0; i < statusBars.length; i++)
            statusBars[i].startProgress("Save to File", resources + roles + resourcesMapping + orgaUnits + rootElements + arcs);

        // ------------------------------
        // pnmlDoc.documentProperties();
        XmlCursor cursor = iPnml.newCursor();
        cursor.insertComment(comment);
        /* ##### NET ##### */
        NetType iNet = iPnml.addNewNet();
        // attr type
        iNet.setType(petrinetModel.getType());
View Full Code Here

Examples of org.wsdmdemo.service.weatherStation.impl.TemperatureMetricTypeImpl.newCursor()

  public int getTemperature() throws FaultException {
    XmlObject[] tempArry=m_ws.getResourceProperty(weatherStationTempQname);
    if(tempArry.length>0){
      TemperatureMetricTypeImpl x=(TemperatureMetricTypeImpl)tempArry[0];
     
      String value=x.newCursor().getTextValue();
      return new Long(Math.round(x.doubleValue())).intValue();
    }
    return -1;
  }
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2003.x03.addressing.ReferencePropertiesType.newCursor()

   {
      SOAPHeaderElement       headerElem;
      ReferencePropertiesType props = consumerEPR.getReferenceProperties(  );
      if ( props != null )
      {
         XmlCursor cursor          = props.newCursor(  );
         boolean   hasAnotherChild = cursor.toFirstChild(  );
         while ( hasAnotherChild )
         {
            // TODO: *SJC* the below logic should handle refProps that are complexTypes..
            // Best way to do may be to build SOAPMessage as XmlBean and use MessageFactory.createMessage(..) to construct using the InputStream
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2004.x08.eventing.FilterType.newCursor()

         if ( uri != null )
         {
            filter.setDialect( uri.toString(  ) );
         }

         filter.newCursor(  ).setTextValue( (String) xf.getExpression(  ) );
      }

      SubscribeResponseDocument.SubscribeResponse sresres = null;
      try
      {
View Full Code Here

Examples of xsd.company.CompanyDocument.newCursor()

        CompanyDocument cDoc = CompanyDocument.Factory.newInstance();

        // add new
        CompanyType co = cDoc.addNewCompany();

        xc = cDoc.newCursor();
        PreBookmark prebk = (PreBookmark) xc.getBookmark(PreBookmark.class);

        expected = "{preSet in FooHandler: 2, <xml-fragment></xml-fragment>, {company.xsd}company, false, -1}";
        actual = prebk.getMsg();
        Assert.assertTrue("Expected: " + expected + "\n  actual: " + actual, expected.equals(actual));
View Full Code Here

Examples of xsd.company.CompanyType.newCursor()


        // set
        co.setName2("xbean name");

        xc = co.newCursor();
        prebk = (PreBookmark) xc.getBookmark(PreBookmark.class);

        expected = "{preSet in FooHandler: 1, <xml-fragment/>, name, true, -1}";
        actual = prebk.getMsg();
        Assert.assertTrue("Expected: " + expected + "\n  actual: " + actual, expected.equals(actual));
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.