com.gmail.thejcwk.semantics.topicmaps
Class Topic
java.lang.Object
com.gmail.thejcwk.semantics.topicmaps.Element
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 java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Topic
public Topic(java.lang.String aName,
java.lang.String aType)
Topic
public Topic()
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