|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.mms.filters.RelType
Class contains all fields relevant to a relationship type.
Constructor Summary | |
RelType()
This is the default no-argument constructor |
|
RelType(Source source,
String type)
This constructor takes initial values for each of the fields in the RelType . |
|
RelType(String line)
This constructor takes a String in the form
sab|type. |
|
RelType(String sab,
String type)
This constructor takes initial values for each of the fields in the RelType . |
Method Summary | |
int |
compareTo(Object o)
This method compares the RelType with a parameter
Object based on the source abbreviation. |
boolean |
equals(Object o)
This method returns true if the parameter has a source abbreviation and a relationship type that have the same values as those in this RelType . |
Source |
getSource()
This method returns the name of the Source in this
RelType . |
String |
getType()
This method returns the type of the RelType . |
int |
hashCode()
Get hashcode based on source abbreviation and relationship type |
void |
setSource(Source source)
This method sets the Source of the RelType . |
void |
setType(String type)
This method sets the type of the RelType . |
String |
toString()
Returns a String representation of the RelType
that includes the two fields that make the RelType unique. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RelType()
public RelType(String line)
String
in the form
sab|type.
line
- String
containing all fields needed for
a RelType
public RelType(String sab, String type)
RelType
.
sab
- String
initial value for the source abbreviationtype
- String
public RelType(Source source, String type)
RelType
.
source
- Source
type
- String
Method Detail |
public int hashCode()
RelType
public boolean equals(Object o)
RelType
.
o
- The Object
to be compared with this RelType
boolean
true
if parameter equals this
RelType
false
if parameter is not equal to this
RelType
public int compareTo(Object o)
RelType
with a parameter
Object
based on the source abbreviation.
compareTo
in interface Comparable
o
- The Object
to be compared with this RelType
RelType
public String toString()
String
representation of the RelType
that includes the two fields that make the RelType
unique.
String
representation of the RelType
public Source getSource()
Source
in this
RelType
.
Source
public void setSource(Source source)
Source
of the RelType
.
source
- Source
public String getType()
RelType
.
String
representation of the typepublic void setType(String type)
RelType
.
type
- String
value for the type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |