org.semanticdesktop.aperture.accessor.base
Class DataObjectBase

java.lang.Object
  extended by org.semanticdesktop.aperture.accessor.base.DataObjectBase
All Implemented Interfaces:
DataObject
Direct Known Subclasses:
FileDataObjectBase, FolderDataObjectBase, MessageDataObjectBase

public class DataObjectBase
extends Object
implements DataObject

A trivial default implementation of DataObject.


Constructor Summary
DataObjectBase()
           
DataObjectBase(URI id, DataSource dataSource, RDFContainer metadata)
           
 
Method Summary
 void dispose()
          Closes this DataObject, freeing any resources that it keeps hold of.
 void finalize()
           
 DataSource getDataSource()
          Gets the DataSource from which this DataObject was obtained.
 URI getID()
          Gets the DataObject's primary identifier.
 RDFContainer getMetadata()
          Get the metadata describing this DataObject's ID.
 DataObject getWrappedDataObject()
           
protected  boolean isDisposed()
           
 void setDataSource(DataSource dataSource)
           
 void setID(URI id)
           
 void setMetadata(RDFContainer metadata)
           
 void setWrappedDataObject(DataObject wrappedDataObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataObjectBase

public DataObjectBase()

DataObjectBase

public DataObjectBase(URI id,
                      DataSource dataSource,
                      RDFContainer metadata)
Method Detail

finalize

public void finalize()
              throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

setID

public void setID(URI id)

getID

public URI getID()
Description copied from interface: DataObject
Gets the DataObject's primary identifier.

Specified by:
getID in interface DataObject
Returns:
An identifier for this DataObject.

setDataSource

public void setDataSource(DataSource dataSource)

getDataSource

public DataSource getDataSource()
Description copied from interface: DataObject
Gets the DataSource from which this DataObject was obtained.

Specified by:
getDataSource in interface DataObject
Returns:
The DataSource from which this DataObject originated.

setMetadata

public void setMetadata(RDFContainer metadata)

getMetadata

public RDFContainer getMetadata()
Description copied from interface: DataObject
Get the metadata describing this DataObject's ID.

Specified by:
getMetadata in interface DataObject
Returns:
An RDFContainer containing an RDF model formulated using the Aperture vocabulary.

dispose

public void dispose()
Description copied from interface: DataObject
Closes this DataObject, freeing any resources that it keeps hold of. This method disposes the underlying metadata RDFContainer. It doesn't dispose the DataSource. The metadata RDFContainer cannot be used after the call to this method.

Specified by:
dispose in interface DataObject

getWrappedDataObject

public DataObject getWrappedDataObject()

setWrappedDataObject

public void setWrappedDataObject(DataObject wrappedDataObject)

isDisposed

protected boolean isDisposed()


Copyright © 2010 Aperture Development Team. All Rights Reserved.