|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.domain.enzyme.EnzymeName
public class EnzymeName
This class stores a name related to an enzyme.
Currently three different types of names are supported:
Field Summary | |
---|---|
static EnzymeName |
UNDEF
|
Method Summary | |
---|---|
int |
compareTo(EnzymeName name)
|
boolean |
equals(Object o)
Standard equals method omitting 'orderIn' attribute, which is irrelevant for this check. |
static EnzymeName |
getCommonNameInstance(String name,
EnzymeSourceConstant source,
EnzymeViewConstant view)
Returns an EnzymeName instance representing an enzyme's common (recommended) name. |
String |
getName()
Returns the name. |
EnzymeNameQualifierConstant |
getQualifier()
Returns the name's qualifier. |
EnzymeSourceConstant |
getSource()
Returns the name's source. |
static EnzymeName |
getSynonymInstance(String name,
EnzymeNameQualifierConstant qualifier,
EnzymeSourceConstant source,
EnzymeViewConstant view)
Returns an EnzymeName instance representing an enzyme's synonym. |
static EnzymeName |
getSystematicNameInstance(String name,
EnzymeSourceConstant source,
EnzymeViewConstant view)
Returns an EnzymeName instance representing an enzyme's systematic name. |
EnzymeNameTypeConstant |
getType()
Returns the name's type. |
EnzymeViewConstant |
getView()
Returns the name's view code. |
int |
hashCode()
Returns the hash code of this object. |
static EnzymeName |
valueOf(String name,
EnzymeNameTypeConstant type,
EnzymeNameQualifierConstant qualifier,
EnzymeSourceConstant source,
EnzymeViewConstant view)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static EnzymeName UNDEF
Method Detail |
---|
public static EnzymeName valueOf(String name, EnzymeNameTypeConstant type, EnzymeNameQualifierConstant qualifier, EnzymeSourceConstant source, EnzymeViewConstant view)
public static EnzymeName getCommonNameInstance(String name, EnzymeSourceConstant source, EnzymeViewConstant view)
EnzymeName
instance representing an enzyme's common (recommended) name.
name
- The common name.
EnzymeName
instance representing the common name.
NullPointerException
- if name
is null
.
IllegalArgumentException
- if name
is empty.public static EnzymeName getSystematicNameInstance(String name, EnzymeSourceConstant source, EnzymeViewConstant view)
EnzymeName
instance representing an enzyme's systematic name.
name
- The systematic name.
EnzymeName
instance representing the systematic name.
NullPointerException
- if name
is null
.
IllegalArgumentException
- if name
is empty.public static EnzymeName getSynonymInstance(String name, EnzymeNameQualifierConstant qualifier, EnzymeSourceConstant source, EnzymeViewConstant view)
EnzymeName
instance representing an enzyme's synonym.
name
- The systematic name.qualifier
- A qualifier used for synonyms (see EnzymeNameQualifierConstant
).
EnzymeName
instance representing the synonym.
NullPointerException
- if name
or qualifier
are null
.
IllegalArgumentException
- if name
is empty or orderIn
is < 1.public int compareTo(EnzymeName name)
compareTo
in interface Comparable<EnzymeName>
name
- The specified enzyme name.
public boolean equals(Object o)
equals
in class Object
o
- Object to be compared to this one.
true
if the objects are equal.public int hashCode()
hashCode
in class Object
public String getName()
public EnzymeNameTypeConstant getType()
EnzymeNameTypeConstant
public EnzymeNameQualifierConstant getQualifier()
EnzymeNameQualifierConstant
public EnzymeSourceConstant getSource()
EnzymeSourceConstant
public EnzymeViewConstant getView()
getView
in interface Viewable
EnzymeViewConstant
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |