Package org.biojava.nbio.ontology
Class Synonym
- java.lang.Object
-
- org.biojava.nbio.ontology.Synonym
-
- All Implemented Interfaces:
Comparable<Synonym>
public class Synonym extends Object implements Comparable<Synonym>
-
-
Field Summary
Fields Modifier and Type Field Description static int
BROAD_SYNONYM
static Comparator<Synonym>
COMPARATOR
static int
EXACT_SYNONYM
static int
NARROW_SYNONYM
static int
RELATED_SYNONYM
static int
UNKNOWN_SCOPE
-
Constructor Summary
Constructors Constructor Description Synonym()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Synonym o)
String
getCategory()
String
getName()
int
getScope()
void
setCategory(String category)
void
setName(String name)
void
setScope(int scope)
String
toString()
-
-
-
Field Detail
-
UNKNOWN_SCOPE
public static final int UNKNOWN_SCOPE
- See Also:
- Constant Field Values
-
RELATED_SYNONYM
public static final int RELATED_SYNONYM
- See Also:
- Constant Field Values
-
EXACT_SYNONYM
public static final int EXACT_SYNONYM
- See Also:
- Constant Field Values
-
NARROW_SYNONYM
public static final int NARROW_SYNONYM
- See Also:
- Constant Field Values
-
BROAD_SYNONYM
public static final int BROAD_SYNONYM
- See Also:
- Constant Field Values
-
COMPARATOR
public static final Comparator<Synonym> COMPARATOR
-
-
Constructor Detail
-
Synonym
public Synonym()
-
-
Method Detail
-
getCategory
public String getCategory()
-
setCategory
public void setCategory(String category)
-
getScope
public int getScope()
-
setScope
public void setScope(int scope)
-
compareTo
public int compareTo(Synonym o)
- Specified by:
compareTo
in interfaceComparable<Synonym>
-
-