public class Relation extends Object
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".
| Modifier | Constructor and Description |
|---|---|
protected |
Relation()
Empty constructor for Hibernate compatibility.
|
|
Relation(String symbol,
String description)
Main constructor for this class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
String |
getSymbol() |
void |
setDescription(String description) |
void |
setSymbol(String symbol) |
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).