org.forester.go
Class BasicGoRelationship

java.lang.Object
  extended by org.forester.go.BasicGoRelationship
All Implemented Interfaces:
java.lang.Comparable<GoRelationship>, GoRelationship

public class BasicGoRelationship
extends java.lang.Object
implements GoRelationship


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.forester.go.GoRelationship
GoRelationship.Type
 
Field Summary
 
Fields inherited from interface org.forester.go.GoRelationship
HAS_PART_STR, NEGATIVELY_REGULATES_STR, PART_OF_STR, POSITIVELY_REGULATES_STR, REGULATES_STR
 
Constructor Summary
BasicGoRelationship(GoRelationship.Type type, GoId go_id)
           
BasicGoRelationship(java.lang.String s)
           
BasicGoRelationship(java.lang.String type, java.lang.String go_id)
           
 
Method Summary
 int compareTo(GoRelationship rel)
           
 boolean equals(java.lang.Object o)
          Based on value and type.
 GoId getGoId()
           
 GoRelationship.Type getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicGoRelationship

public BasicGoRelationship(java.lang.String s)

BasicGoRelationship

public BasicGoRelationship(java.lang.String type,
                           java.lang.String go_id)

BasicGoRelationship

public BasicGoRelationship(GoRelationship.Type type,
                           GoId go_id)
Method Detail

compareTo

public int compareTo(GoRelationship rel)
Specified by:
compareTo in interface java.lang.Comparable<GoRelationship>

equals

public boolean equals(java.lang.Object o)
Based on value and type.

Overrides:
equals in class java.lang.Object

getGoId

public GoId getGoId()
Specified by:
getGoId in interface GoRelationship

getType

public GoRelationship.Type getType()
Specified by:
getType in interface GoRelationship

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object