Package org.oasisOpen.docs.wsn.x2004.x06.wsnWSTopics12Draft01

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSTopics12Draft01.SimpleTopicExpression$Factory


   /**
    * DOCUMENT_ME
    */
   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 );
View Full Code Here


        super(consumerReference, producerReference,
                producerKey, producerHomeLocation, topicExpression);
    }

    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);
View Full Code Here

      }

      if ( m_policy != null )
      {
         prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_SUBSCRIPTION_POLICY );
         SubscriptionPolicyDocument subPolicyDoc = SubscriptionPolicyDocument.Factory.newInstance(  );
         subPolicyDoc.setSubscriptionPolicy( null );
         prop.add( subPolicyDoc );
      }
   }
View Full Code Here

            selectorDoc.setSelector((QueryExpressionType) ((XmlBeansQueryExpression) m_selector).getXmlObject());
            prop.add(selectorDoc);
        }
        if (m_policy != null) {
            prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_SUBSCRIPTION_POLICY);
            SubscriptionPolicyDocument subPolicyDoc = SubscriptionPolicyDocument.Factory.newInstance();
            subPolicyDoc.setSubscriptionPolicy(null);
            prop.add(subPolicyDoc);
        }
    }
View Full Code Here

      if ( m_subscription.getPolicy(  ) != null )
      {
         if ( prop.isEmpty(  ) )
         {
            SubscriptionPolicyDocument subPolicyDoc = SubscriptionPolicyDocument.Factory.newInstance(  );
            subPolicyDoc.addNewSubscriptionPolicy(  );
            prop.add( subPolicyDoc );
         }

         XmlObject subPolicy    = (XmlObject) prop.get( 0 );
         XmlObject newSubPolicy;
View Full Code Here

    */
   private static void addConcreteTopicExpressions( ResourceProperty topicProp,
                                                    QName            rootTopicName,
                                                    Topic            subTopic )
   {
      TopicDocument topicDocument     = TopicDocument.Factory.newInstance(  );
      String        topicName         = subTopic.getName(  );
      QName         concreteTopicName =
         new QName( rootTopicName.getNamespaceURI(  ), rootTopicName.getLocalPart(  ) + "/" + topicName );
      if ( subTopic.isVisible(  ) )
      {
         TopicExpressionType topicExpressionType = topicDocument.addNewTopic(  );
         topicExpressionType.setDialect( TopicsConstants.TOPIC_EXPR_DIALECT_CONCRETE );
         XmlBeanUtils.setValueAsQName( topicExpressionType, concreteTopicName );
         topicProp.add( topicDocument );
      }

View Full Code Here

   }

   private static void addSimpleTopicExpression( ResourceProperty topicProp,
                                                 QName            rootTopicName )
   {
      TopicDocument       topicDocument       = TopicDocument.Factory.newInstance(  );
      TopicExpressionType topicExpressionType = topicDocument.addNewTopic(  );
      topicExpressionType.setDialect( TopicsConstants.TOPIC_EXPR_DIALECT_SIMPLE );
      XmlBeanUtils.setValueAsQName( topicExpressionType, rootTopicName );
      topicProp.add( topicDocument );
   }
View Full Code Here

        }
    }

    private static void addSimpleTopic(QName rootTopicQName, ResourceProperty resourceProp)
    {
        TopicDocument topicDocument = TopicDocument.Factory.newInstance();
        TopicExpressionType topicExpressionType = topicDocument.addNewTopic();
        topicExpressionType.setDialect(TopicsConstants.TOPIC_EXPR_DIALECT_SIMPLE);
        XmlBeanUtils.setValueAsQName(topicExpressionType, rootTopicQName);
        resourceProp.add(topicDocument);
    }
View Full Code Here

     * @param subTopic  The current topic being added.
     * @param resourceProp  The ResourceProperty associated with the Topic being added to.
     */
    private static void addConcreteTopics(QName rootTopicQName, Topic subTopic, ResourceProperty resourceProp)
    {
        TopicDocument topicDocument = TopicDocument.Factory.newInstance();
        String topicName = subTopic.getName();
        QName concreteTopicName = new QName(rootTopicQName.getNamespaceURI(), rootTopicQName.getLocalPart() + "/" + topicName);
        TopicExpressionType topicExpressionType = topicDocument.addNewTopic();
        topicExpressionType.setDialect(TopicsConstants.TOPIC_EXPR_DIALECT_CONCRETE);
        XmlBeanUtils.setValueAsQName(topicExpressionType, concreteTopicName);
        resourceProp.add(topicDocument);
        Iterator iterator = subTopic.topicIterator();
        while (iterator.hasNext())
View Full Code Here

      if ( prop.isEmpty(  ) )
      {
         String[] supportedDialects = TopicExpressionEngineImpl.getInstance(  ).getSupportedDialects(  );
         for ( int i = 0; i < supportedDialects.length; i++ )
         {
            TopicExpressionDialectsDocument topicExpressionDialectsDocument =
               TopicExpressionDialectsDocument.Factory.newInstance(  );
            topicExpressionDialectsDocument.setTopicExpressionDialects( supportedDialects[i] );
            prop.add( topicExpressionDialectsDocument );
         }
      }

      return prop;
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsn.x2004.x06.wsnWSTopics12Draft01.SimpleTopicExpression$Factory

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.