|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.search.provider.lucene.ResourceChangeEvent
public class ResourceChangeEvent
Holds information about change of a single resource. NOT thread safe.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
ResourceChangeEvent(java.lang.String changeId,
org.eaglei.model.EIEntity entity,
org.eaglei.model.EIEntity type,
org.eaglei.model.EIURI 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(ResourceChangeEvent o)
|
boolean |
deepEquals(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getChangeId()
Identifies the type of change. |
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. |
org.eaglei.model.EIEntity |
getInstitution()
Retrieves the EIEntity representing the resource institution. |
org.eaglei.model.EIURI |
getLab()
Retrieves the EIURI 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. |
org.eaglei.model.EIEntity |
getType()
Retrieves the EIEntity representing the resource type. |
int |
hashCode()
|
void |
setEntity(org.eaglei.model.EIEntity entity)
Sets the EIEntity representing the resource instance |
void |
setInstitution(org.eaglei.model.EIEntity institution)
Sets the EIEntity representing the resource institution. |
void |
setLab(org.eaglei.model.EIURI lab)
Sets the lab where the resource is located. |
void |
setType(org.eaglei.model.EIEntity type)
Sets the EIEntity representing the resource type. |
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 ResourceChangeEvent(java.lang.String changeId,
org.eaglei.model.EIEntity entity,
org.eaglei.model.EIEntity type,
org.eaglei.model.EIURI lab,
org.eaglei.model.EIEntity institution)
| Method Detail |
|---|
public java.lang.String getChangeId()
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.EIURI getLab()
public void setLab(org.eaglei.model.EIURI lab)
lab - EIURI 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 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(ResourceChangeEvent o)
compareTo in interface java.lang.Comparable<ResourceChangeEvent>public boolean deepEquals(java.lang.Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||