org.apache.ws.notification.topics.impl
Class TopicSpaceImpl

java.lang.Object
  extended byorg.apache.ws.notification.topics.impl.TopicSpaceImpl
All Implemented Interfaces:
TopicListenerList, TopicSet, TopicSpace

public class TopicSpaceImpl
extends java.lang.Object
implements TopicSpace

TODO


Constructor Summary
TopicSpaceImpl(java.lang.String targetNs)
           
 
Method Summary
 Topic addTopic(java.lang.String name)
          Creates a new Topic object with the specified name and adds it to this set.
 Topic addTopic(Topic topic)
          Adds the specified topic to this set.
 void addTopicListener(TopicListener listener)
          Add a topic listener
 boolean containsTopic(java.lang.String name)
          Returns true if this set contains a topic with the specified name.
 java.lang.String getName()
          Returns this topic space's name.
 java.lang.String getTargetNamespace()
          Returns this topic space's target namespace.
 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.
 void removeTopicListener(TopicListener listener)
          Remove a topic listener
 void setName(java.lang.String name)
           
 java.util.Iterator topicIterator()
          Gets an iterator of the topics in this set.
 java.util.Iterator topicListenerIterator()
          Get a iterator for the list of TopicListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicSpaceImpl

public TopicSpaceImpl(java.lang.String targetNs)
Method Detail

getTargetNamespace

public java.lang.String getTargetNamespace()
Description copied from interface: TopicSpace
Returns this topic space's target namespace.

Specified by:
getTargetNamespace in interface TopicSpace
Returns:
this topic space's target namespace

getName

public java.lang.String getName()
Description copied from interface: TopicSpace
Returns this topic space's name.

Specified by:
getName in interface TopicSpace
Returns:
this topic space's name

setName

public void setName(java.lang.String name)

addTopic

public Topic addTopic(Topic topic)
Description copied from interface: TopicSet
Adds the specified topic to this set.

Specified by:
addTopic in interface TopicSet
Parameters:
topic - the topic to add

addTopic

public Topic addTopic(java.lang.String name)
               throws java.lang.Exception
Description copied from interface: TopicSet
Creates a new Topic object with the specified name and adds it to this set.

Specified by:
addTopic in interface TopicSet
Parameters:
name - the name of the topic to add
Throws:
java.lang.Exception - if name is null, invalid (contains '/', '*', or '.'), or is the same as the name of a topic already in this set

removeTopic

public void removeTopic(java.lang.String name)
Description copied from interface: TopicSet
Removes the topic with the specified name from this set.

Specified by:
removeTopic in interface TopicSet
Parameters:
name - the name of the topic to remove

getTopic

public Topic getTopic(java.lang.String name)
Description copied from interface: TopicSet
Gets the topic with the specified name.

Specified by:
getTopic in interface TopicSet
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

containsTopic

public boolean containsTopic(java.lang.String name)
Description copied from interface: TopicSet
Returns true if this set contains a topic with the specified name.

Specified by:
containsTopic in interface TopicSet
Parameters:
name - the name
Returns:
true if this set contains a topic with the specified name

topicIterator

public java.util.Iterator topicIterator()
Description copied from interface: TopicSet
Gets an iterator of the topics in this set.

Specified by:
topicIterator in interface TopicSet
Returns:
the iterator

addTopicListener

public void addTopicListener(TopicListener listener)
Description copied from interface: TopicListenerList
Add a topic listener

Specified by:
addTopicListener in interface TopicListenerList
Parameters:
listener - The topic listener to add
See Also:
TopicListener

removeTopicListener

public void removeTopicListener(TopicListener listener)
Description copied from interface: TopicListenerList
Remove a topic listener

Specified by:
removeTopicListener in interface TopicListenerList
Parameters:
listener - The topic listener to remove.
See Also:
TopicListener

topicListenerIterator

public java.util.Iterator topicListenerIterator()
Description copied from interface: TopicListenerList
Get a iterator for the list of TopicListeners

Specified by:
topicListenerIterator in interface TopicListenerList
Returns:
The iterator
See Also:
TopicListener


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