Author: ips
Date: Fri Apr 29 16:30:21 2005
New Revision: 165360
URL: http://svn.apache.org/viewcvs?rev=165360&view=rev
Log:
...
Modified:
incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/impl/TopicImpl.java
Modified:
incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/impl/TopicImpl.java
URL:
http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/impl/TopicImpl.java?rev=165360&r1=165359&r2=165360&view=diff
==============================================================================
---
incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/impl/TopicImpl.java
(original)
+++
incubator/hermes/trunk/src/java/org/apache/ws/notification/topics/impl/TopicImpl.java
Fri Apr 29 16:30:21 2005
@@ -43,6 +43,8 @@
protected Object m_currentMsg;
protected List m_topicPath; // ordered set of QNames
protected TopicSpace m_topicSpace;
+ private Topic m_parent;
+
private static final Log LOG = LogFactory.getLog(
TopicImpl.class.getName() );
// TODO: throw more specific exceptions
@@ -236,22 +238,27 @@
}
}
+ void setParent( Topic parent )
+ {
+ m_parent = parent;
+ }
+
public Topic getParent()
{
- // TODO
- return null;
+ return m_parent;
}
public String toString(){
+ // TODO: make this print the full concrete path of this Topic instead
of just its name
return getName();
}
public void setTopicSpace(TopicSpace topicSpace) {
- m_topicSpace=topicSpace;
+ m_topicSpace = topicSpace;
}
public TopicSpace getTopicSpace() {
return m_topicSpace;
}
-
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]