Examples of addNewTopic()


Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicDocument.addNewTopic()

      }

      TopicDocument                                                           topicDoc =
         TopicDocument.Factory.newInstance(  );
      com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicExpressionType topicExpressionType =
         topicDoc.addNewTopic(  );

      // Assume that the Any is a QName of the property being subscribed to.
      // We need to convert it to a TopicSpaceType and then put it into the TopicExpressionType
      SOAPElement any = expressionType.get_any(  )[0];
      XmlBeansUtils.setupTopicExpressionType( any.getNamespaceURI(  ),
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicDocument.addNewTopic()

   {
      //build a TopicDocument for our <Topic> elem.
      TopicDocument topicDocument = TopicDocument.Factory.newInstance(  );

      //setup topic expression and cursor to be added to TopicDocument
      TopicExpressionType topic = topicDocument.addNewTopic(  );

      XmlBeansUtils.setupTopicExpressionType( topicSpaceType.getTargetNamespace(  ),
                                              resourceTopicType.getName(  ),
                                              topic );
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicDocument.addNewTopic()

      {
         TopicDocument topicDoc = TopicDocument.Factory.newInstance(  );
         XmlBeansUtils.setupTopicExpressionType( ResourceLifetime11Constants.NSURI_WSRL,
                                                 ResourceLifetime11Constants.TOPIC_QNAME_RESOURCE_TERMINATION
                                                 .getLocalPart(  ),
                                                 topicDoc.addNewTopic(  ) );

         TerminationNotificationDocument termNotifDoc = TerminationNotificationDocument.Factory.newInstance(  );
         TerminationNotification         termNotif = termNotifDoc.addNewTerminationNotification(  );
         termNotif.setTerminationTime( Calendar.getInstance(  ) );
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicDocument.addNewTopic()

                                                 String name )
   throws InvalidResourcePropertyQNameFaultException,
          Exception
   {
      TopicDocument       doc   = TopicDocument.Factory.newInstance(  );
      TopicExpressionType topic = doc.addNewTopic(  );
      XmlBeansUtils.setupTopicExpressionType( namespace, name, topic );
      ResourcePropertiesManager rp_mgr = this.getPropertiesManager(  );

      SOAPElement[]             wsntTopics =
         rp_mgr.getResourceProperty( BaseNotification10Constants.RESOURCE_PROP_QNAME_TOPIC );
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsTopics.TopicSpaceType.addNewTopic()

            TopicSpaceType topicSpaceType = topicSpaceArray[i];

            if ( topicSpaceType.getTargetNamespace(  ).equals( propQName.getNamespaceURI(  ) ) )
            {
               //todo what other fields can be set??
               topicType = topicSpaceType.addNewTopic(  );
               topicType.setName( propQName.getLocalPart(  ) );
            }
         }
      }
      else
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsTopics.TopicSpaceType.addNewTopic()

         if ( topicSpace != null )
         {
            topicSpace.setName( "ResourcePropertiesTopicSpace" );
            topicSpace.setTargetNamespace( propQName.getNamespaceURI(  ) );
            topicType = topicSpace.addNewTopic(  );
         }
      }

      if ( topicType != null )
      {
View Full Code Here

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicDocument.addNewTopic()

      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

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicDocument.addNewTopic()

   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

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicDocument.addNewTopic()

    }

    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

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicDocument.addNewTopic()

    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
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.