ucot.model.relation
Class Relation
java.lang.Object
ucot.model.relation.Thing
ucot.model.relation.Relation
- All Implemented Interfaces:
- java.io.Serializable
public class Relation
- extends Thing
Relation connects Thing in the model to other things.
Relation is directed link between Things that has
name and type.
- Author:
- panu
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
from
Thing from
fromCardinal
java.lang.String fromCardinal
toCardinal
java.lang.String toCardinal
to
Thing to
type
RelationType type
Relation
public Relation(Thing from,
java.lang.String methodName,
Thing to)
Relation
public Relation(Thing from,
RelationType type,
Thing to)
getFrom
public Thing getFrom()
setFrom
public void setFrom(Item from)
getTo
public Thing getTo()
setTo
public void setTo(Item to)
getType
public RelationType getType()
setType
public void setType(RelationType type)
getFromCardinal
public java.lang.String getFromCardinal()
setFromCardinal
public void setFromCardinal(java.lang.String fromCardinal)
getToCardinal
public java.lang.String getToCardinal()
setToCardinal
public void setToCardinal(java.lang.String toCardinal)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class Thing