org.imemex.datasourceplugins
Class AbstractPluginIdentifiableResourceView

java.lang.Object
  extended by org.imemex.idm.AbstractResourceView
      extended by org.imemex.datasourceplugins.AbstractPluginIdentifiableResourceView
All Implemented Interfaces:
java.lang.Comparable<PluginIdentifiableResourceView>, PluginIdentifiableResourceView, ResourceView
Direct Known Subclasses:
ContentConvertedDataSourceResourceView, DatabaseResourceView, DefaultPluginIdentifiableResourceView, IMAPItem, Item, NameOnlyRV, RowResourceView, SymbolicLink, TableResourceView, XMLDocumentResourceView

public abstract class AbstractPluginIdentifiableResourceView
extends AbstractResourceView
implements PluginIdentifiableResourceView, java.lang.Comparable<PluginIdentifiableResourceView>

This class implements:


Constructor Summary
AbstractPluginIdentifiableResourceView()
           
AbstractPluginIdentifiableResourceView(java.lang.String name)
           
AbstractPluginIdentifiableResourceView(java.lang.String pluginAssignedId, java.lang.String name)
           
 
Method Summary
 int compareTo(PluginIdentifiableResourceView rv)
           
 boolean equals(java.lang.Object obj)
           
 Group<PluginIdentifiableResourceView> getGroup()
          gets the Group component Y of this resource view
 java.lang.String getPluginAssignedId()
          Get the plugin assigned id of this resource view.
 double getScore()
          The score of this resource view if it was obtained by a query to the data source.
 int hashCode()
           
 boolean isContentCoveredInGroup()
          Indicates whether the content of this resource view is covered by its group sub-graph.
 void setPluginAssignedId(java.lang.String pluginAssignedId)
          Returns the plugin assigned id of this RV.
 java.lang.String toString()
           
 
Methods inherited from class org.imemex.idm.AbstractResourceView
getName, setName
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.imemex.idm.ResourceView
getContent, getName, getTuple
 

Constructor Detail

AbstractPluginIdentifiableResourceView

public AbstractPluginIdentifiableResourceView()

AbstractPluginIdentifiableResourceView

public AbstractPluginIdentifiableResourceView(java.lang.String pluginAssignedId,
                                              java.lang.String name)

AbstractPluginIdentifiableResourceView

public AbstractPluginIdentifiableResourceView(java.lang.String name)
Method Detail

setPluginAssignedId

public void setPluginAssignedId(java.lang.String pluginAssignedId)
Description copied from interface: PluginIdentifiableResourceView
Returns the plugin assigned id of this RV. It should be assigned by the data source plugin developer. Plugin assigned ids should be unique for each plugin.

Specified by:
setPluginAssignedId in interface PluginIdentifiableResourceView

getPluginAssignedId

public java.lang.String getPluginAssignedId()
Description copied from interface: PluginIdentifiableResourceView
Get the plugin assigned id of this resource view.

Specified by:
getPluginAssignedId in interface PluginIdentifiableResourceView
Returns:
the plugin assigned id of this resource view

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(PluginIdentifiableResourceView rv)
Specified by:
compareTo in interface java.lang.Comparable<PluginIdentifiableResourceView>

toString

public java.lang.String toString()
Overrides:
toString in class AbstractResourceView

getGroup

public Group<PluginIdentifiableResourceView> getGroup()
Description copied from interface: ResourceView
gets the Group component Y of this resource view

Specified by:
getGroup in interface ResourceView
Returns:
View set S_t and View sequence S_q as Group-Object

isContentCoveredInGroup

public boolean isContentCoveredInGroup()
Description copied from interface: PluginIdentifiableResourceView
Indicates whether the content of this resource view is covered by its group sub-graph.

Specified by:
isContentCoveredInGroup in interface PluginIdentifiableResourceView
Returns:
true if content is covered by the RV's group sub-graph.

getScore

public double getScore()
Description copied from interface: PluginIdentifiableResourceView
The score of this resource view if it was obtained by a query to the data source.

Specified by:
getScore in interface PluginIdentifiableResourceView
Returns:
the query score of this resource view.