uk.ac.ebi.sbo.common
Class Term

java.lang.Object
  extended by uk.ac.ebi.sbo.common.Term
All Implemented Interfaces:
Serializable

public class Term
extends Object
implements Serializable

Simpler and easy object which stores everything about a term.

Version:
20130312
Author:
Camille Laibe
See Also:
Serialized Form

Constructor Summary
Term()
          Constructor
 
Method Summary
 void addSynonym(String synonym)
          Adds a synonym to the list of synonyms.
 String getComment()
          Getter
 Date getDateCreation()
          Getter
 Date getDateUpdate()
          Getter
 String getDefinition()
          Getter
 String getIdentifier()
          Getter
 Integer getIdentifierInt()
          Getter of the numerical part of the identifier, without the "SBO:" but with the front '0's.
 String getMathml()
          Getter
 String getName()
          Getter
 Boolean getObsolete()
          Getter (for usage in JSTL, cf. http://stackoverflow.com/questions/1118261/what-is-the-correct-syntax-for-is-variable-getter-setters-in-a-pojo-class)
 Boolean getRoot()
          Getter
 String getSynonym(int index)
          Retrieves a specific synonym from the list of synonyms.
 List<String> getSynonyms()
          Getter
 String getType()
          Getter
 Boolean isObsolete()
          Getter
 void setComment(String comment)
          Setter
 void setDateCreation(Date dateCreation)
          Setter
 void setDateUpdate(Date dateUpdate)
          Setter
 void setDefinition(String definition)
          Setter
 void setIdentifier(Integer identifier)
          Setter for data coming from database, the accession does not include the 'SBO:'
 void setIdentifier(String identifier)
          Setter
 void setMathml(String mathml)
          Setter
 void setName(String name)
          Setter
 void setObsolete(Boolean obsolete)
          Setter
 void setObsolete(Integer obsolete)
          Setter for with data coming from database (1 or 0).
 void setRoot(Boolean root)
          Setter
 void setRoot(Integer root)
          Setter for with data coming from database (1 or 0).
 void setSynonyms(List<String> synonyms)
          Setter
 void setType(String type)
          Setter
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Term

public Term()
Constructor

Method Detail

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()

getIdentifier

public String getIdentifier()
Getter

Returns:
the identifier

getIdentifierInt

public Integer getIdentifierInt()
Getter of the numerical part of the identifier, without the "SBO:" but with the front '0's.

Returns:
numerical part of the term identifier (equivalent to the official identifier without the "SBO:" prefix)

setIdentifier

public void setIdentifier(String identifier)
Setter

Parameters:
identifier - the identifier to set

setIdentifier

public void setIdentifier(Integer identifier)
Setter for data coming from database, the accession does not include the 'SBO:'

Parameters:
identifier -

getName

public String getName()
Getter

Returns:
the name

setName

public void setName(String name)
Setter

Parameters:
name - the name to set

getSynonyms

public List<String> getSynonyms()
Getter

Returns:
the synonyms

getSynonym

public String getSynonym(int index)
Retrieves a specific synonym from the list of synonyms.

Parameters:
index - the index of the synonym
Returns:
the synonyms

setSynonyms

public void setSynonyms(List<String> synonyms)
Setter

Parameters:
synonyms - the synonyms to set

addSynonym

public void addSynonym(String synonym)
Adds a synonym to the list of synonyms.

Parameters:
synonym - the synonym to add to the list of synonyms

getDefinition

public String getDefinition()
Getter

Returns:
the definition

setType

public void setType(String type)
Setter

Parameters:
type - the type to set

getType

public String getType()
Getter

Returns:
the type

setDefinition

public void setDefinition(String definition)
Setter

Parameters:
definition - the definition to set

getMathml

public String getMathml()
Getter

Returns:
the mathml

setMathml

public void setMathml(String mathml)
Setter

Parameters:
mathml - the mathml to set

getComment

public String getComment()
Getter

Returns:
the comment

setComment

public void setComment(String comment)
Setter

Parameters:
comment - the comment to set

getRoot

public Boolean getRoot()
Getter

Returns:
the root

setRoot

public void setRoot(Boolean root)
Setter

Parameters:
root - the root to set

setRoot

public void setRoot(Integer root)
Setter for with data coming from database (1 or 0).

Parameters:
root -

isObsolete

public Boolean isObsolete()
Getter

Returns:
the obsolete

getObsolete

public Boolean getObsolete()
Getter (for usage in JSTL, cf. http://stackoverflow.com/questions/1118261/what-is-the-correct-syntax-for-is-variable-getter-setters-in-a-pojo-class)

Returns:
the obsolete

setObsolete

public void setObsolete(Boolean obsolete)
Setter

Parameters:
obsolete - the obsolete to set

setObsolete

public void setObsolete(Integer obsolete)
Setter for with data coming from database (1 or 0).

Parameters:
obsolete - the obsolete to set

getDateCreation

public Date getDateCreation()
Getter

Returns:
the dateCreation

setDateCreation

public void setDateCreation(Date dateCreation)
Setter

Parameters:
dateCreation - the dateCreation to set

getDateUpdate

public Date getDateUpdate()
Getter

Returns:
the dateUpdate

setDateUpdate

public void setDateUpdate(Date dateUpdate)
Setter

Parameters:
dateUpdate - the dateUpdate to set


BioModels.net, EMBL-EBI - 12 Mar 2013