Twease

edu.cornell.med.icb.synonyms.entities
Class EmptySynonym

java.lang.Object
  extended by edu.cornell.med.icb.synonyms.entities.EmptySynonym
All Implemented Interfaces:
Serializable

public class EmptySynonym
extends Object
implements Serializable

The EmptySynonym object, for persistence via JPA.

Author:
Kevin Dorff
See Also:
Serialized Form

Field Summary
static String[] CREATE_INDEX_COMMANDS
          Commands required to index this data.
static String[] DROP_INDEX_COMMANDS
          Commands required to remove the indexes for this data.
 
Constructor Summary
EmptySynonym(String dictionaryWordVal, String appliesToVal, String sourceVal)
          General constructor for creating a new synonym.
 
Method Summary
 String getAppliesTo()
          Getter for AppliesTo.
 String getDictionaryWord()
          Getter for DictionaryWord.
 Long getId()
          Getter for Id.
 Date getImportDate()
          Getter for ImportDate.
 String getSource()
          Getter for Source.
 boolean isEquivalent(EmptySynonym emptySynonym)
          Returns true if this synonym and the suggested on are the same, ignoring the id and the import date.
 String toString()
          Human readable version of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DROP_INDEX_COMMANDS

public static final String[] DROP_INDEX_COMMANDS
Commands required to remove the indexes for this data.


CREATE_INDEX_COMMANDS

public static final String[] CREATE_INDEX_COMMANDS
Commands required to index this data.

Constructor Detail

EmptySynonym

public EmptySynonym(String dictionaryWordVal,
                    String appliesToVal,
                    String sourceVal)
General constructor for creating a new synonym.

Parameters:
dictionaryWordVal - the dictionary word it applies to
appliesToVal - which application this synonym applies to, or "*" if it apples to any application
sourceVal - the source of the synonym
Method Detail

getId

public Long getId()
Getter for Id.

Returns:
Long the id of this synonym (this will be populated after the synonym is peristed).

getDictionaryWord

public String getDictionaryWord()
Getter for DictionaryWord.

Returns:
String the DictionaryWord.

getAppliesTo

public String getAppliesTo()
Getter for AppliesTo.

Returns:
String the AppliesTo value.

getSource

public String getSource()
Getter for Source.

Returns:
String the Source value.

getImportDate

public Date getImportDate()
Getter for ImportDate.

Returns:
Date the ImportDate value.

isEquivalent

public boolean isEquivalent(EmptySynonym emptySynonym)
Returns true if this synonym and the suggested on are the same, ignoring the id and the import date.

Parameters:
emptySynonym - the Synonym to compare to
Returns:
true if this synonym and the suggested one are equivalent

toString

public String toString()
Human readable version of this object.

Overrides:
toString in class Object
Returns:
String the Human readable version of this object

Twease

Copyright © 2006-2007 Institute for Computational Biomedicine, All Rights Reserved.