|
Alignment API and Server 4.2.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.impl.BasicRelation
public class BasicRelation
Represents an ontology alignment relation.
Field Summary | |
---|---|
private static Map<String,Class<?>> |
classIndex
|
protected String |
prettyLabel
The pretty relation attached to the relation type This is overriden as static in subclasses |
protected String |
relation
The initial relation given by the user (through parser for instance) This is never used in subclass relations (because they share one relation) |
Constructor Summary | |
---|---|
BasicRelation(String rel)
Creation |
Method Summary | |
---|---|
void |
accept(AlignmentVisitor visitor)
|
void |
accept(TypeCheckingVisitor visitor)
|
Relation |
compose(Relation r)
By default... |
static Relation |
createRelation(String rel)
The constructor to use |
void |
dump(ContentHandler h)
Housekeeping |
boolean |
equals(Relation r)
Are the two relations equal |
(package private) static Class<?> |
getClass(String label)
|
String |
getClassName()
The name to use if no other information is available |
String |
getPrettyLabel()
|
String |
getRelation()
printable format |
int |
hashCode()
|
Relation |
inverse()
By default the inverse is the relation itself |
void |
write(PrintWriter writer)
This is kept for displayig more correctly the result |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Map<String,Class<?>> classIndex
protected String relation
protected String prettyLabel
Constructor Detail |
---|
public BasicRelation(String rel)
Method Detail |
---|
static Class<?> getClass(String label)
public void accept(TypeCheckingVisitor visitor) throws AlignmentException
AlignmentException
public void accept(AlignmentVisitor visitor) throws AlignmentException
accept
in interface Visitable
AlignmentException
public String getRelation()
getRelation
in interface Relation
public String getPrettyLabel()
public String getClassName()
public static Relation createRelation(String rel)
public Relation inverse()
inverse
in interface Relation
public Relation compose(Relation r)
compose
in interface Relation
public boolean equals(Relation r)
equals
in interface Relation
public int hashCode()
hashCode
in class Object
public void dump(ContentHandler h)
dump
in interface Relation
public void write(PrintWriter writer)
write
in interface Relation
|
Alignment API and Server 4.2.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |