SMILA (incubation) API documentation

org.eclipse.smila.connectivity.framework.util.internal
Class DataReferenceImpl

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.util.internal.DataReferenceImpl
All Implemented Interfaces:
DataReference

public class DataReferenceImpl
extends java.lang.Object
implements DataReference

Default Implementation of the interface DataReference.

See Also:
DataReference

Constructor Summary
DataReferenceImpl(CrawlerCallback callback, Id id, java.lang.String hash)
          Conversion Constructor.
 
Method Summary
 void dispose()
          Disposes the referenced record object.
 java.lang.String getHash()
          Returns the hash of the referenced record as a String.
 Id getId()
          Returns the Id of the referenced record.
 Record getRecord()
          Returns the complete Record object via the CrawlerCallback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataReferenceImpl

public DataReferenceImpl(CrawlerCallback callback,
                         Id id,
                         java.lang.String hash)
Conversion Constructor.

Parameters:
callback - reference to a CrawlerCallback
id - the record id
hash - the record hash
Method Detail

getId

public Id getId()
Returns the Id of the referenced record.

Specified by:
getId in interface DataReference
Returns:
the Id of the referenced record
See Also:
DataReference.getId()

getHash

public java.lang.String getHash()
Returns the hash of the referenced record as a String.

Specified by:
getHash in interface DataReference
Returns:
the hash of the referenced record as a String
See Also:
DataReference.getHash()

getRecord

public Record getRecord()
                 throws CrawlerException,
                        CrawlerCriticalException,
                        InvalidTypeException
Returns the complete Record object via the CrawlerCallback.

Specified by:
getRecord in interface DataReference
Returns:
the complete record
Throws:
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occurs
InvalidTypeException - if the hash attribute cannot be set
See Also:
DataReference.getRecord()

dispose

public void dispose()
Disposes the referenced record object.

Specified by:
dispose in interface DataReference
See Also:
DataReference.dispose()

SMILA (incubation) API documentation