com.gmail.thejcwk.semantics.topicmaps
Class Occurrence
java.lang.Object
com.gmail.thejcwk.semantics.topicmaps.Element
com.gmail.thejcwk.semantics.topicmaps.Occurrence
public class Occurrence
- extends Element
Encapsulates an Occurrence in a topic map.
- Author:
- Jan Kroeze
|
Constructor Summary |
Occurrence()
|
Occurrence(java.lang.String aName,
java.lang.String aType,
java.lang.String aDescription)
|
|
Method Summary |
boolean |
equals(java.lang.Object rhs)
Compare two Occurrences to see if they are equal. |
java.lang.String |
getDescription()
|
void |
setDescription(java.lang.String description)
|
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Occurrence
public Occurrence(java.lang.String aName,
java.lang.String aType,
java.lang.String aDescription)
Occurrence
public Occurrence()
equals
public boolean equals(java.lang.Object rhs)
- Compare two Occurrences to see if they are equal.
- Overrides:
equals in class java.lang.Object
- Parameters:
rhs - The Occurrence to compare this one with.
- Returns:
- True if both Occurrences share the same name, description and
type. False if rhs isn't an Occurrence.
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)