Alignment API and Server 4.0

fr.inrialpes.exmo.align.impl
Class BasicRelation

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.BasicRelation
All Implemented Interfaces:
Relation, Visitable
Direct Known Subclasses:
EquivRelation, IncompatRelation, NonTransitiveImplicationRelation, SubsumedRelation, SubsumeRelation

public class BasicRelation
extends Object
implements Relation

Represents an ontology alignment relation.

Version:
$Id: BasicRelation.java 1317 2010-03-09 19:34:39Z euzenat $
Author:
Jérôme Euzenat

Field Summary
protected  String relation
          It is intended that the value of the relation is =, < or >.
 
Constructor Summary
BasicRelation(String rel)
          Creation
 
Method Summary
 void accept(AlignmentVisitor visitor)
           
 Relation compose(Relation r)
          By default...
static Relation createRelation(String rel)
           
 void dump(ContentHandler h)
          Housekeeping
 boolean equals(Relation r)
          Are the two relations equal
 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

relation

protected String relation
It is intended that the value of the relation is =, < or >. But this can be any string in other applications.

Constructor Detail

BasicRelation

public BasicRelation(String rel)
Creation

Method Detail

accept

public void accept(AlignmentVisitor visitor)
            throws AlignmentException
Specified by:
accept in interface Visitable
Throws:
AlignmentException

getRelation

public String getRelation()
printable format

Specified by:
getRelation in interface Relation

createRelation

public static Relation createRelation(String rel)

inverse

public Relation inverse()
By default the inverse is the relation itself

Specified by:
inverse in interface Relation

compose

public Relation compose(Relation r)
By default...

Specified by:
compose in interface Relation

equals

public boolean equals(Relation r)
Are the two relations equal

Specified by:
equals in interface Relation

hashCode

public int hashCode()
Overrides:
hashCode in class Object

dump

public void dump(ContentHandler h)
Housekeeping

Specified by:
dump in interface Relation

write

public void write(PrintWriter writer)
This is kept for displayig more correctly the result

Specified by:
write in interface Relation

Alignment API and Server 4.0

(C) INRIA & friends, 2003-2010