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