org.mindswap.multimedia.impl
Class DigitalMediaImpl

java.lang.Object
  extended byResourceImpl
      extended byorg.mindswap.multimedia.impl.DigitalMediaImpl
All Implemented Interfaces:
DigitalMedia
Direct Known Subclasses:
VideoImpl, VideoSegmentImpl

public abstract class DigitalMediaImpl
extends ResourceImpl
implements DigitalMedia

Title:

Description:

Copyright: Copyright (c) 2005

Company: Mindswap (http://www.mindswap.org)

See Also:
Serialized Form

Constructor Summary
protected DigitalMediaImpl(Node n, EnhGraph eg)
          Creates a new DigitalMedia resource.
Not for public use.
 
Method Summary
 DigitalMedia addDepicts(Resource theDepiction)
          Add the statement that this media depicts the specifed instance
 StmtIterator listDepicts()
          List all the depictions for this Image
protected  MultimediaModel mustBeValidModel()
           
 DigitalMedia removeDepicts(Resource theDepiction)
          Remove the statement that this media depicts the specifed instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalMediaImpl

protected DigitalMediaImpl(Node n,
                           EnhGraph eg)
Creates a new DigitalMedia resource.
Not for public use. Intended for the Implementation factory to use when wrapping a Resource to a DigtalMedia

Parameters:
n - Node the node to wrap as an DigitalMedia
eg - EnhGraph the graph the node belongs to
Method Detail

addDepicts

public DigitalMedia addDepicts(Resource theDepiction)
Add the statement that this media depicts the specifed instance

Specified by:
addDepicts in interface DigitalMedia
Parameters:
theDepiction - Resource the resource to depict
Returns:
DigitalMedia a reference to this resource

removeDepicts

public DigitalMedia removeDepicts(Resource theDepiction)
Remove the statement that this media depicts the specifed instance

Specified by:
removeDepicts in interface DigitalMedia
Parameters:
theDepiction - Resource the depicted resource
Returns:
DigitalMedia a reference to this resource

mustBeValidModel

protected MultimediaModel mustBeValidModel()

listDepicts

public StmtIterator listDepicts()
List all the depictions for this Image

Specified by:
listDepicts in interface DigitalMedia
Returns:
StmtIterator an iterator over the depicts statements