|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.search.provider.SearchResult
public class SearchResult
Holds the one of the results from a search. NOT thread safe.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
SearchResult(org.eaglei.model.EIEntity entity,
org.eaglei.model.EIEntity type,
org.eaglei.model.EIEntity lab,
org.eaglei.model.EIEntity institution)
Creates a new SearchResult. |
|
| Method Summary | |
|---|---|
void |
addDataTypeProperty(org.eaglei.model.EIURI property,
java.lang.String value)
Adds a property binding for a data type property. |
void |
addObjectProperty(org.eaglei.model.EIURI property,
org.eaglei.model.EIURI value)
Adds a property binding for an object property. |
int |
compareTo(SearchResult o)
|
boolean |
deepEquals(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
|
java.util.Set<org.eaglei.model.EIURI> |
getDataTypeProperties()
Returns the URIs (as EIURI instances) for the result data type properties. |
java.util.Set<java.lang.String> |
getDataTypeProperty(org.eaglei.model.EIURI property)
Retrieves the values of the specified data type property. |
org.eaglei.model.EIEntity |
getEntity()
Retrieves the EIEntity representing the resource instance. |
java.lang.String |
getHighlight()
Retrieves the search highlight (for full text searches). |
org.eaglei.model.EIEntity |
getInstitution()
Retrieves the EIEntity representing the resource institution. |
org.eaglei.model.EIEntity |
getLab()
Retrieves the EIEntity representing the lab at which the resource is located. |
java.util.Set<org.eaglei.model.EIURI> |
getObjectProperties()
Returns the URIs (as EIURI instances) for the result object properties. |
java.util.Set<org.eaglei.model.EIURI> |
getObjectProperty(org.eaglei.model.EIURI property)
Retrieves the values of the specified object property. |
float |
getRank()
Gets the search result rank as a float. |
org.eaglei.model.EIEntity |
getType()
Retrieves the EIEntity representing the resource type. |
java.lang.String |
getURL()
Retrieves the HTTP URL for the result. |
int |
hashCode()
|
void |
setEntity(org.eaglei.model.EIEntity entity)
Sets the EIEntity representing the resource instance |
void |
setHighlight(java.lang.String highlight)
Sets the highlight. |
void |
setInstitution(org.eaglei.model.EIEntity institution)
Sets the EIEntity representing the resource institution. |
void |
setLab(org.eaglei.model.EIEntity lab)
Sets the lab where the resource is located. |
void |
setRank(float rank)
Sets the result rank. |
void |
setType(org.eaglei.model.EIEntity type)
Sets the EIEntity representing the resource type. |
void |
setURL(java.lang.String url)
Sets the HTTP URL |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public SearchResult(org.eaglei.model.EIEntity entity,
org.eaglei.model.EIEntity type,
org.eaglei.model.EIEntity lab,
org.eaglei.model.EIEntity institution)
| Method Detail |
|---|
public org.eaglei.model.EIEntity getEntity()
public void setEntity(org.eaglei.model.EIEntity entity)
entity - The EIEntity. Cannot be null.public org.eaglei.model.EIEntity getType()
public void setType(org.eaglei.model.EIEntity type)
type - The type entity. Corresponds to a class in the eagle-i ontology.public org.eaglei.model.EIEntity getLab()
public void setLab(org.eaglei.model.EIEntity lab)
lab - EIEntity representing the resource lab. May be null.public org.eaglei.model.EIEntity getInstitution()
public void setInstitution(org.eaglei.model.EIEntity institution)
institution - The institution entity.public java.util.Set<org.eaglei.model.EIURI> getDataTypeProperties()
public void addDataTypeProperty(org.eaglei.model.EIURI property,
java.lang.String value)
property - Property URI as an EIURI. Cannot be null.value - Property value.public java.util.Set<java.lang.String> getDataTypeProperty(org.eaglei.model.EIURI property)
property - Property URI as an EIURI.
public java.util.Set<org.eaglei.model.EIURI> getObjectProperties()
public void addObjectProperty(org.eaglei.model.EIURI property,
org.eaglei.model.EIURI value)
property - Property URI as an EIURI. Cannot be null.value - Property value.public java.util.Set<org.eaglei.model.EIURI> getObjectProperty(org.eaglei.model.EIURI property)
property - Property URI as an EIURI.
public java.lang.String getURL()
public void setURL(java.lang.String url)
url - HTTP URL stringpublic java.lang.String getHighlight()
public void setHighlight(java.lang.String highlight)
highlight - The full-text highlight.public float getRank()
public void setRank(float rank)
rank - The result rank.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(SearchResult o)
compareTo in interface java.lang.Comparable<SearchResult>public boolean deepEquals(java.lang.Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||