org.mindswap.multimedia.impl
Class MultimediaModelImpl

java.lang.Object
  extended byModelCom
      extended byorg.mindswap.multimedia.impl.MultimediaModelImpl
All Implemented Interfaces:
MultimediaModel

public class MultimediaModelImpl
extends ModelCom
implements MultimediaModel

Title: MultimediaModelImpl

Description: An implementation of the MultimediaModel interface

Copyright: Copyright (c) 2005

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

See Also:
Serialized Form

Constructor Summary
MultimediaModelImpl(Graph theGraph, ModelProfile theProfile)
           
 
Method Summary
 Image createImage(java.lang.String uri)
          Create an Image resource w/ the given Id
 Region createRegion()
          Create a new region (as a bnode)
 Region createRegion(java.lang.String theURI)
          Create a new named region
 Video createVideo(java.lang.String theURI)
          Create a new Video with the given id
 VideoFrame createVideoFrame()
          Create a new VideoFrame (as a bnode)
 VideoFrame createVideoFrame(java.lang.String theURI)
          Create a new named VideoFrame
 VideoSegment createVideoSegment()
          Create a new VideoSegment (as a bnode)
 VideoSegment createVideoSegment(java.lang.String theURI)
          Create a new named VideoSegment
 ModelProfile getModelProfile()
          Returns the current model profile for this model
 ResIterator listImages()
          List all images in this model
 ResIterator listVideos()
          List all videos in this model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultimediaModelImpl

public MultimediaModelImpl(Graph theGraph,
                           ModelProfile theProfile)
Method Detail

createImage

public Image createImage(java.lang.String uri)
Description copied from interface: MultimediaModel
Create an Image resource w/ the given Id

Specified by:
createImage in interface MultimediaModel
Parameters:
uri - String the Id of the resource to create
Returns:
Image the newly created Image resource

createRegion

public Region createRegion()
Description copied from interface: MultimediaModel
Create a new region (as a bnode)

Specified by:
createRegion in interface MultimediaModel
Returns:
Region the newly created region

createRegion

public Region createRegion(java.lang.String theURI)
Description copied from interface: MultimediaModel
Create a new named region

Specified by:
createRegion in interface MultimediaModel
Returns:
Region the new region belonging to this model

getModelProfile

public ModelProfile getModelProfile()
Description copied from interface: MultimediaModel
Returns the current model profile for this model

Specified by:
getModelProfile in interface MultimediaModel
Returns:
ModelProfile the current model profile

listImages

public ResIterator listImages()
Description copied from interface: MultimediaModel
List all images in this model

Specified by:
listImages in interface MultimediaModel
Returns:
Iterator an iterator

listVideos

public ResIterator listVideos()
Description copied from interface: MultimediaModel
List all videos in this model

Specified by:
listVideos in interface MultimediaModel
Returns:
ResIterator an iterator over the Video resources present in this model

createVideo

public Video createVideo(java.lang.String theURI)
Description copied from interface: MultimediaModel
Create a new Video with the given id

Specified by:
createVideo in interface MultimediaModel
Parameters:
theURI - String the id of the resource to create
Returns:
Video the new video resource

createVideoFrame

public VideoFrame createVideoFrame()
Description copied from interface: MultimediaModel
Create a new VideoFrame (as a bnode)

Specified by:
createVideoFrame in interface MultimediaModel
Returns:
VideoFrame the new VideoFrame

createVideoFrame

public VideoFrame createVideoFrame(java.lang.String theURI)
Description copied from interface: MultimediaModel
Create a new named VideoFrame

Specified by:
createVideoFrame in interface MultimediaModel
Parameters:
theURI - the id of the new VideoFrame
Returns:
VideoFrame the new VideoFrame

createVideoSegment

public VideoSegment createVideoSegment()
Description copied from interface: MultimediaModel
Create a new VideoSegment (as a bnode)

Specified by:
createVideoSegment in interface MultimediaModel
Returns:
VideoSegment the new VideoSegment

createVideoSegment

public VideoSegment createVideoSegment(java.lang.String theURI)
Description copied from interface: MultimediaModel
Create a new named VideoSegment

Specified by:
createVideoSegment in interface MultimediaModel
Parameters:
theURI - the id of the new video segment
Returns:
VideoSegment the new VideoSegment