/** * Creates a topic expression type from the specified topic information. * * @param topic * the QName associated to the topic of the topic expression type * to build. * * @return a topic expression type from the specified topic information. */ public static TopicExpressionType createTopicExpressionType(QName topic) { TopicExpressionType topicExpressionType = new TopicExpressionType(); topicExpressionType.getOtherAttributes().put( topic, topic.getNamespaceURI()); topicExpressionType.setDialect(WsnConstants.TOPIC_EXPRESSION_DIALECT); topicExpressionType.getContent().add( topic.getPrefix() + ":" + topic.getLocalPart()); return topicExpressionType; }
topicPrefix = org.apache.xml.utils.QName.getPrefixPart(topic); for (Entry<QName, String> entry : topicExpressionType.getOtherAttributes() .entrySet()) {