|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfleischhacker.uni.thesis.utils.alignment.Correspondence
public class Correspondence
Represents a correspondence made of the following components
Constructor Summary | |
---|---|
Correspondence()
Initializes the correspondence without values. |
|
Correspondence(java.lang.String entity1,
java.lang.String entity2,
java.lang.String relation)
Initializes the correspondence using the given values. |
|
Correspondence(java.lang.String entity1,
java.lang.String entity2,
java.lang.String relation,
float measure)
Initializes the correspondence using the given values |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the given correspondence is equal to this correspondence. |
java.lang.String |
getEntity1()
|
java.lang.String |
getEntity2()
|
float |
getMeasure()
|
java.lang.String |
getRelation()
|
int |
hashCode()
Returns this correspondence's hashCode. |
void |
setEntity1(java.lang.String entity1)
Sets entity1 |
void |
setEntity2(java.lang.String entity2)
Sets entity2 |
void |
setMeasure(float measure)
Set measure. |
void |
setRelation(java.lang.String relation)
Sets the relation holding between entity 1 and 2 |
java.lang.String |
toString()
Returns the correspondence's string representation |
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc)
Returns this correspondence's XML representation. |
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc,
boolean addNamespace)
Returns this correspondence's XML representation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Correspondence(java.lang.String entity1, java.lang.String entity2, java.lang.String relation, float measure)
entity1
- entity from ontology 1entity2
- entity from ontology 2relation
- relations holding between entity1 and entity2measure
- confidence measure for relationpublic Correspondence(java.lang.String entity1, java.lang.String entity2, java.lang.String relation)
entity1
- entity from ontology 1entity2
- entity from ontology 2relation
- relations holding between entity1 and entity2public Correspondence()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public org.w3c.dom.Element toXML(org.w3c.dom.Document doc) throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
public org.w3c.dom.Element toXML(org.w3c.dom.Document doc, boolean addNamespace) throws javax.xml.parsers.ParserConfigurationException
addNamespace
- if true namespace delaration for RDF will be added to
the root of the generated XML snippets, otherwise this declaration
is omitted
javax.xml.parsers.ParserConfigurationException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- correspondence to compare to
public void setEntity1(java.lang.String entity1)
entity1
- URI for entity1 as stringpublic void setEntity2(java.lang.String entity2)
entity2
- URI for entity 2 as stringpublic void setRelation(java.lang.String relation)
relation
- relation holding between entitiespublic void setMeasure(float measure)
measure
- measure to setpublic java.lang.String getEntity1()
public java.lang.String getEntity2()
public java.lang.String getRelation()
public float getMeasure()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |