Package org.apache.ws.resource.properties.impl

Examples of org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet


         throws XmlException, IOException, MetaDataViolationException
   {
      InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream( RESOURCE_PATH_SUSHI_PROPS_XML );
      XmlObject propsDocXBean = XmlObject.Factory.parse( in );
      in.close();
      m_resourcePropSet = new XmlBeansResourcePropertySet( propsDocXBean );
   }
View Full Code Here


      return docTypeSupported;
   }

   private JobPropertiesDocument getJobPropDoc( JobPortResource instance )
   {
      XmlBeansResourcePropertySet propSet = (XmlBeansResourcePropertySet) instance.getResourcePropertySet(  );
      return (JobPropertiesDocument) propSet.toXmlObject(  );
   }
View Full Code Here

                {
                    setJobState(job, JobStateType.PROCESSING);
                    //set termination time to now to make it be removed.
                    job.setTerminationTime(Calendar.getInstance());

                    XmlBeansResourcePropertySet jobPropSet = (XmlBeansResourcePropertySet) job.getResourcePropertySet();
                    ResourceProperty resourceProperty = jobPropSet.get(JobPortPropertyQNames.JOB_ID);
                    XmlInteger jobint = (XmlInteger) resourceProperty.get(0);
                    BigInteger bigIntegerValue = jobint.getBigIntegerValue();                   

                    decrementQueueCount();
                    setJobState(job, JobStateType.COMPLETED);
View Full Code Here

      in = Thread.currentThread().getContextClassLoader().getResourceAsStream( RESOURCE_PATH_SUSHI_METADATA_XML );
      DefinitionsDocument metadataDocXBean = (DefinitionsDocument) XmlObject.Factory.parse( in );
      MetadataDescriptorType metadataDesc = metadataDocXBean.getDefinitions().getMetadataDescriptorArray( 0 );
      in.close();
      ResourcePropertySetMetaData propSetMetaData = new XmlBeansResourcePropertySetMetaData( propsDocXBean.schemaType(), metadataDesc );
      m_resourcePropSet = new XmlBeansResourcePropertySet( propsDocXBean, propSetMetaData );
   }
View Full Code Here

      {
          LOG.debug(MSG.getMessage( Keys.EVAL_XPATH_RPSET,xpathExpr.toString(),
                    resourcePropSet.getMetaData().getName().toString()));
      }

      XmlBeansResourcePropertySet xBeanPropSet;
      try
      {
         xBeanPropSet = (XmlBeansResourcePropertySet) resourcePropSet;
      }
      catch ( ClassCastException cce )
      {
         throw new JAXRPCException( MSG.getMessage( Keys.ERROR_XPATH_EXPR_REQ_XMLBEANRPSET,
                                    cce ));
      }
      XmlObject propsDocXBean = XmlBeanUtils.getRootElement( xBeanPropSet.toXmlObject(  ) );

      // NOTE: the expression's namespace context is currently not used by this evaluator,
      //       since XMLBeans v1 does not support specifying a namespace context when calling
      //       selectPath()
View Full Code Here

     */
    public GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument(GetResourcePropertyDocumentDocument1 requestDoc)
    {
        GetResourcePropertyDocumentResponseDocument responseDocument = createResponseDocument();
        GetResourcePropertyDocumentResponseDocument.GetResourcePropertyDocumentResponse responseDoc = responseDocument.getGetResourcePropertyDocumentResponse();
        XmlBeansResourcePropertySet properties = (XmlBeansResourcePropertySet) getProperties();

        XmlBeanUtils.addChildElement(responseDoc, properties.toXmlObject());
        return responseDocument;
    }
View Full Code Here

    public void init() {
        SubscriptionManagerRPDocument propsDoc = SubscriptionManagerRPDocument.Factory.newInstance();
        ResourcePropertySetMetaData propSetMetaData = new XmlBeansResourcePropertySetMetaData(propsDoc.schemaType(),
                READ_ONLY_PROP_NAMES);
        m_propSet = new XmlBeansResourcePropertySet(propsDoc, propSetMetaData);

        // wsrlw:ScheduledResourceTermination props
        ResourceProperty prop = m_propSet.get(ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME);
        CurrentTimeDocument currTimeDoc = CurrentTimeDocument.Factory.newInstance();
        currTimeDoc.setCurrentTime(getCurrentTime());
View Full Code Here

        SubscriptionTopicListener lis = new SubscriptionTopicListener(sub);
        AnyResourcePropertyMetaData anyMeta = new AnyResourcePropertyMetaData(new QName("foo"));

        //need some sort of documenttype
        NotifyDocument doc = NotifyDocument.Factory.newInstance();
        XmlBeansResourcePropertySet set = new XmlBeansResourcePropertySet(doc);
        XmlBeansResourceProperty prop = new XmlBeansResourceProperty(anyMeta,set);
        ResourcePropertyValueChangeTopicImpl topic = new ResourcePropertyValueChangeTopicImpl(prop);
        TopicListenerTestObj testListenr = new TopicListenerTestObj();
        topic.addTopicListener(testListenr);
        lis.topicChanged(topic);
View Full Code Here

    public void init()
    {
        NotificationProducerRPDocument notificationProducerRPDocument = NotificationProducerRPDocument.Factory.newInstance();
        NotificationProducerRPDocument.NotificationProducerRP notificationProducerRP = notificationProducerRPDocument.addNewNotificationProducerRP();
        m_resourcePropertySet = new XmlBeansResourcePropertySet(notificationProducerRPDocument);

        TopicSpaceImpl topicSpace = new TopicSpaceImpl(UnitExampleHome.TARGET_NAMESPACE);


        try
View Full Code Here

    }

    public void init()
    {
        JavaSystemPropertiesDocument propsDoc = JavaSystemPropertiesDocument.Factory.newInstance();
        m_propSet = new XmlBeansResourcePropertySet( propsDoc );
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet

Copyright © 2018 www.massapicom. 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.