|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.shared.MobyRelationship
public class MobyRelationship
A container representing a name of a BioMoby data type and its relationship to another BioMoby data type.
Constructor Summary | |
---|---|
MobyRelationship()
Default constructor. |
|
MobyRelationship(String name,
String dataTypeName,
int relationshipType)
Normal constructor. |
Method Summary | |
---|---|
String |
getDataTypeName()
Return a name of a data type that is linked by this relationship. |
String |
getName()
Return name of this relationship (an "article name"). |
int |
getRelationshipType()
Return type of this relationship. |
void |
setDataTypeName(String value)
|
void |
setName(String value)
|
void |
setRelationshipType(int value)
|
String |
toString()
|
static String |
type2str(int relationshipType)
A static method converting a relationship type to its string representation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MobyRelationship()
public MobyRelationship(String name, String dataTypeName, int relationshipType)
name
- is a name how this relationship is known (an
"article name" in the BioMoby speak), e.g. 'length'. Because of
the backward compatibility it accepts also a null or empty
string here - but according to the BioMoby API (0.8) this name
should be always given.dataTypeName
- is a name of a data type that is defined by
this relationship, e.g. 'Integer'.relationshipType
- is either HASA
or HAS
. If it is something else it is silently changed to HASA
.Method Detail |
---|
public String getName()
public void setName(String value)
public String getDataTypeName()
public void setDataTypeName(String value)
public int getRelationshipType()
HASA
or
HAS
.
public void setRelationshipType(int value)
public static String type2str(int relationshipType)
public String toString()
toString
in class Object
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |