com.gmail.thejcwk.semantics.topicmaps
Class Topic

java.lang.Object
  extended by com.gmail.thejcwk.semantics.topicmaps.Element
      extended by com.gmail.thejcwk.semantics.topicmaps.Topic

public class Topic
extends Element

Encapsulates a Topic that appears on a topic map.

Author:
Jan Kroeze

Constructor Summary
Topic()
           
Topic(java.lang.String aName, java.lang.String aType)
           
 
Method Summary
 boolean equals(java.lang.Object rhs)
          Compares two Topics to see if they are equal.
 java.lang.String toString()
           
 
Methods inherited from class com.gmail.thejcwk.semantics.topicmaps.Element
getName, getType, setName, setType
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Topic

public Topic(java.lang.String aName,
             java.lang.String aType)

Topic

public Topic()
Method Detail

equals

public boolean equals(java.lang.Object rhs)
Compares two Topics to see if they are equal.

Overrides:
equals in class java.lang.Object
Parameters:
rhs - The Topic to compare this one with.
Returns:
True if the Topics share the same name and type. False if rhs isn't a Topic.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object