|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.filters.RelType
public class 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 - Sourcetype - String| Method Detail |
|---|
public int hashCode()
hashCode in class ObjectRelTypepublic boolean equals(Object o)
RelType.
equals in class Objecto - The Object to be compared with this RelType
boolean true if parameter equals this
RelType
false if parameter is not equal to this
RelTypepublic int compareTo(Object o)
RelType with a parameter
Object based on the source abbreviation.
compareTo in interface Comparableo - The Object to be compared with this RelType
RelTypepublic String toString()
String representation of the RelType
that includes the two fields that make the RelType unique.
toString in class ObjectString representation of the RelTypepublic Source getSource()
Source in this
RelType.
Sourcepublic void setSource(Source source)
Source of the RelType.
source - Sourcepublic 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 | ||||||||