|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.dico.islab.idbs2.map.Relation
public class Relation
Representation of a custom comparison relation. The role of this class is to act as a wrapper for the relation describing a similarity comparison. Examples:
symbol
is "=" and description
is "Equality"
symbol
is "HYP" and the description
is "Hipernymy".
Constructor Summary | |
---|---|
protected |
Relation()
Empty constructor for Hibernate compatibility. |
|
Relation(String symbol,
String description)
Main constructor for this class. |
Method Summary | |
---|---|
String |
getDescription()
|
String |
getSymbol()
|
void |
setDescription(String description)
|
void |
setSymbol(String symbol)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Relation()
Empty constructor for Hibernate compatibility. Direct use is discouraged.
public Relation(String symbol, String description)
Main constructor for this class. Returns a new instance of a Relation
.
Warning: this method just creates a new Relation
instance without checking if
an identical instance is present on the database. Using this method, primary key
constraints must be checked manually.
symbol
- a symbol representing the relation (e.g. the symbol "=" for the equality relation).description
- the description of this relation (e.g. the word "Equality" for the equality relation).Method Detail |
---|
public String getSymbol()
public void setSymbol(String symbol)
public String getDescription()
public void setDescription(String description)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |