anl.aida.client
Class DefaultKeyword
java.lang.Object
anl.aida.client.DefaultKeyword
- All Implemented Interfaces:
- Keyword, java.lang.Comparable<Keyword>
public class DefaultKeyword
- extends java.lang.Object
- implements Keyword
Encapsulates an MIFS keyword as unformatted term and
a display string.
Constructor Summary |
DefaultKeyword(java.lang.String term,
java.lang.String displayString)
Creates a keyword. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
term
private java.lang.String term
displayString
private java.lang.String displayString
DefaultKeyword
public DefaultKeyword(java.lang.String term,
java.lang.String displayString)
- Creates a keyword.
- Parameters:
term
- the keywords term textdisplayString
- the string to use when displaying the term
getTerm
public java.lang.String getTerm()
- Gets this Keyword's term text.
- Specified by:
getTerm
in interface Keyword
- Returns:
- this Keyword's term text.
getLabel
public java.lang.String getLabel()
- Gets this Keyword's display string.
- Specified by:
getLabel
in interface Keyword
- Returns:
- this Keyword's display string.
compareTo
public int compareTo(Keyword o)
- Specified by:
compareTo
in interface java.lang.Comparable<Keyword>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object