com.gmail.thejcwk.semantics.topicmaps
Class Occurrence

java.lang.Object
  extended by com.gmail.thejcwk.semantics.topicmaps.Element
      extended by 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 com.gmail.thejcwk.semantics.topicmaps.Element
getName, getType, setName, setType
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Occurrence

public Occurrence(java.lang.String aName,
                  java.lang.String aType,
                  java.lang.String aDescription)

Occurrence

public Occurrence()
Method Detail

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)