|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.mms.Dependency
public class Dependency
Represents a dependency between two sources. Used to connect sources together logically to assist in subsetting.
| Constructor Summary | |
|---|---|
Dependency()
Instantiates an empty Dependency. |
|
Dependency(Source source,
Source dep_source)
Instantiates a Dependency between
the two specified Sources. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this Dependency to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Source |
getDependentSource()
Returns the dependent Source. |
Source |
getSource()
Returns the Source object being depended upon. |
int |
hashCode()
Return a hash code based on the source abbreviations. |
void |
setDependentSource(Source dep_source)
Sets the dependent Source. |
void |
setSource(Source source)
Sets the Source being depended upon. |
String |
toString()
Returns a String representation of the dependency. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Dependency()
Dependency.
public Dependency(Source source,
Source dep_source)
Dependency between
the two specified Sources.
source - a Sourcedep_source - the dependent Source| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
true if the specified object is
equal to this object. The specified object must be a
Dependency with matching key fields.
equals in class Objecto - an Object to compare against
true if Object o is equal
false otherwisepublic int compareTo(Object o)
Dependency to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo in interface Comparableo - the Object to compare to
int representing the relative ordering
of this and the compare-to objectpublic String toString()
String representation of the dependency.
toString in class ObjectString representation of the dependencypublic Source getSource()
Source object being depended upon.
Source object being depended upon.public void setSource(Source source)
Source being depended upon.
source - the Source being depended upon.public Source getDependentSource()
Source.
Sourcepublic void setDependentSource(Source dep_source)
Source.
dep_source - the dependent Source
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||