org.eaglei.lexical.lucene
Class EntityMatchImpl
java.lang.Object
org.eaglei.lexical.lucene.EntityMatchImpl
- All Implemented Interfaces:
- org.eaglei.lexical.EntityMatch
public final class EntityMatchImpl
- extends java.lang.Object
- implements org.eaglei.lexical.EntityMatch
Implementation of EntityMatch
- Author:
- rfrost
|
Constructor Summary |
EntityMatchImpl(java.lang.String prefLabel,
java.lang.String matchLabel,
java.lang.String highlight,
java.lang.String URI,
float score)
Creates a new EntityMatchImpl. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EntityMatchImpl
public EntityMatchImpl(java.lang.String prefLabel,
java.lang.String matchLabel,
java.lang.String highlight,
java.lang.String URI,
float score)
- Creates a new EntityMatchImpl.
- Parameters:
prefLabel - Preferred label of the entity.matchLabel - Matched label of the entity.highlight - Highlighted match.URI - URI of the entity.score - Score of the match.
getEntity
public org.eaglei.model.EIEntity getEntity()
- Specified by:
getEntity in interface org.eaglei.lexical.EntityMatch
getScore
public float getScore()
- Specified by:
getScore in interface org.eaglei.lexical.EntityMatch
getHighlight
public java.lang.String getHighlight()
- Specified by:
getHighlight in interface org.eaglei.lexical.EntityMatch
getMatchLabel
public java.lang.String getMatchLabel()
- Specified by:
getMatchLabel in interface org.eaglei.lexical.EntityMatch
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
Copyright © 2009-2010 Eagle-I. All Rights Reserved.