org.apache.ws.notification.topics
Interface TopicSiblingSet

All Known Subinterfaces:
Topic, TopicNamespace, TopicSpace

public interface TopicSiblingSet

A set of sibling Topics.


Method Summary
 Topic addTopic(java.lang.String name)
          Creates a new Topic object with the specified name and adds it to this set.
 boolean containsTopic(java.lang.String name)
          Returns true if this set contains a topic with the specified name.
 Topic getTopic(java.lang.String name)
          Gets the topic with the specified name.
 void removeTopic(java.lang.String name)
          Removes the topic with the specified name from this set.
 java.util.Iterator topicIterator()
          Gets an iterator of the topics in this set.
 

Method Detail

getTopic

public Topic getTopic(java.lang.String name)
Gets the topic with the specified name.

Parameters:
name - the name of the topic to get
Returns:
the topic, or null if no topic with the given name exists in this set

addTopic

public Topic addTopic(java.lang.String name)
Creates a new Topic object with the specified name and adds it to this set. If this set already contains a Topic with the specified name, it will be replaced.

Parameters:
name - the name of the topic to be added

containsTopic

public boolean containsTopic(java.lang.String name)
Returns true if this set contains a topic with the specified name.

Parameters:
name - the name
Returns:
true if this set contains a topic with the specified name

removeTopic

public void removeTopic(java.lang.String name)
Removes the topic with the specified name from this set.

Parameters:
name - the name of the topic to remove

topicIterator

public java.util.Iterator topicIterator()
Gets an iterator of the topics in this set.

Returns:
the iterator


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.