org.imemex.resourceviewmanager.mappers
Class AdaptedIdentifiableResourceView

java.lang.Object
  extended by org.imemex.idm.AbstractResourceView
      extended by org.imemex.componentmappings.AbstractOIDResourceView
          extended by org.imemex.resourceviewmanager.AbstractIdentifiableResourceView
              extended by org.imemex.resourceviewmanager.mappers.AdaptedIdentifiableResourceView
All Implemented Interfaces:
java.lang.Comparable, OID, OIDResourceView, ResourceView, IdentifiableResourceView

public class AdaptedIdentifiableResourceView
extends AbstractIdentifiableResourceView

Adapts a PluginIdentifiableResourceView to an IdentifiableResourceView, so that resource views directly obtained via meditation may be returned as query results in the RVM.

Author:
marcos

Field Summary
static org.apache.commons.logging.Log log
           
 
Constructor Summary
AdaptedIdentifiableResourceView(PluginIdentifiableResourceView rv, long dataSourceId)
          Instantiates a new AdaptedIdentifiableResourceView.
 
Method Summary
 Content getContent()
          gets the IContent component Xi of this resource view
 Group getGroup()
          gets the Group component Y of this resource view
 java.lang.String getName()
          gets the Name component eta of this resource view
 Tuple getTuple()
          gets the Tuple component tau of this resource view
 void setDataSourceId(long dataSourceId)
          Sets the data source identifier for this resource view.
 void setPluginAssignedId(java.lang.String pluginAssignedId)
          Returns the plugin assigned id of this RV.
 
Methods inherited from class org.imemex.resourceviewmanager.AbstractIdentifiableResourceView
EMPTY_ARRAY_IRV, EMPTY_ARRAY_PIRV, equals, getDataSourceId, getPluginAssignedId, getScore, getScoreAttributes, hashCode, mergeScoreAttributes, setScore, setScoreAttributes, toString
 
Methods inherited from class org.imemex.componentmappings.AbstractOIDResourceView
compareTo, getOID, setOID
 
Methods inherited from class org.imemex.idm.AbstractResourceView
setName
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.imemex.componentmappings.OIDResourceView
setOID
 
Methods inherited from interface org.imemex.componentmappings.OID
getOID
 

Field Detail

log

public static org.apache.commons.logging.Log log
Constructor Detail

AdaptedIdentifiableResourceView

public AdaptedIdentifiableResourceView(PluginIdentifiableResourceView rv,
                                       long dataSourceId)
Instantiates a new AdaptedIdentifiableResourceView.

Parameters:
rv - - the plugin identifiable resource view to be adapted.
Method Detail

setDataSourceId

public void setDataSourceId(long dataSourceId)
Description copied from interface: IdentifiableResourceView
Sets the data source identifier for this resource view.

Specified by:
setDataSourceId in interface IdentifiableResourceView
Overrides:
setDataSourceId in class AbstractIdentifiableResourceView
Parameters:
dataSourceId - - the new data source id to be set.

setPluginAssignedId

public void setPluginAssignedId(java.lang.String pluginAssignedId)
Description copied from interface: IdentifiableResourceView
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 IdentifiableResourceView
Overrides:
setPluginAssignedId in class AbstractIdentifiableResourceView

getName

public java.lang.String getName()
Description copied from interface: ResourceView
gets the Name component eta of this resource view

Specified by:
getName in interface ResourceView
Overrides:
getName in class AbstractResourceView
Returns:
name as String

getTuple

public Tuple getTuple()
Description copied from interface: ResourceView
gets the Tuple component tau of this resource view

Returns:
Schema (Attributes) S and Tupels (Values) T as Tuple-Object

getContent

public Content getContent()
Description copied from interface: ResourceView
gets the IContent component Xi of this resource view

Returns:
content as Content-Object (accessible by Input/Output-Streams)

getGroup

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

Returns:
View set S_t and View sequence S_q as Group-Object