org.mindswap.multimedia
Class MultimediaFactory

java.lang.Object
  extended byorg.mindswap.multimedia.MultimediaFactory

public class MultimediaFactory
extends java.lang.Object

Title: MultimediaModelFactory

Description: A factory for creating Multimedia models

Copyright: Copyright (c) 2005

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


Constructor Summary
MultimediaFactory()
           
 
Method Summary
static Image createImage(java.lang.String theURI, MultimediaModel theModel)
          Creates a new Image resource in the specified Model with the given uri
static MultimediaModel createMultimediaModel()
          Creates a new multimedia model using the Mindswap profile
static MultimediaModel createMultimediaModel(ModelProfile theProfile)
          Creates a new multimedia model using the specified model profile
static Region createRegion(MultimediaModel theModel)
          Create a region resource in the given model
static Region createRegion(java.lang.String theURI, MultimediaModel theModel)
          Create a region resource in the given model
static Video createVideo(java.lang.String theURI, MultimediaModel theModel)
          Create a Video resource in the given model
static VideoFrame createVideoFrame(MultimediaModel theModel)
          Create a VideoFrame resource in the given model
static VideoFrame createVideoFrame(java.lang.String theURI, MultimediaModel theModel)
          Create a VideoFrame resource in the given model
static VideoSegment createVideoSegment(MultimediaModel theModel)
          Create a VideoSegment resource in the given model
static VideoSegment createVideoSegment(java.lang.String theURI, MultimediaModel theModel)
          Create a VideoSegment resource in the given model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultimediaFactory

public MultimediaFactory()
Method Detail

createMultimediaModel

public static MultimediaModel createMultimediaModel()
Creates a new multimedia model using the Mindswap profile

Returns:
MultimediaModel the new multimedia model

createMultimediaModel

public static MultimediaModel createMultimediaModel(ModelProfile theProfile)
Creates a new multimedia model using the specified model profile

Parameters:
theProfile - ModelProfile the model profile to use
Returns:
MultimediaModel the new multimedia model

createImage

public static Image createImage(java.lang.String theURI,
                                MultimediaModel theModel)
Creates a new Image resource in the specified Model with the given uri

Parameters:
theURI - String the id of the new Image resource
theModel - MultimediaModel the model the resource will belong to
Returns:
Image the newly created Image object

createRegion

public static Region createRegion(MultimediaModel theModel)
Create a region resource in the given model

Parameters:
theModel - MultimediaModel the model
Returns:
Region the newly created region resource

createRegion

public static Region createRegion(java.lang.String theURI,
                                  MultimediaModel theModel)
Create a region resource in the given model

Parameters:
theURI - String the uri of the new region, or null for a bnode
theModel - MultimediaModel the model to create the resouce in
Returns:
Region the new region

createVideo

public static Video createVideo(java.lang.String theURI,
                                MultimediaModel theModel)
Create a Video resource in the given model

Parameters:
theURI - the id of the new Video resource
theModel - MultimediaModel the model
Returns:
Video the newly created video resource

createVideoFrame

public static VideoFrame createVideoFrame(MultimediaModel theModel)
Create a VideoFrame resource in the given model

Parameters:
theModel - MultimediaModel the model
Returns:
VideoFrame the newly created VideoFrame resource

createVideoFrame

public static VideoFrame createVideoFrame(java.lang.String theURI,
                                          MultimediaModel theModel)
Create a VideoFrame resource in the given model

Parameters:
theURI - the id of the video frame
theModel - MultimediaModel the model
Returns:
VideoFrame the newly created VideoFrame resource

createVideoSegment

public static VideoSegment createVideoSegment(MultimediaModel theModel)
Create a VideoSegment resource in the given model

Parameters:
theModel - MultimediaModel the model
Returns:
VideoSegment the newly created VideoSegment resource

createVideoSegment

public static VideoSegment createVideoSegment(java.lang.String theURI,
                                              MultimediaModel theModel)
Create a VideoSegment resource in the given model

Parameters:
theURI - the id of the new video segment
theModel - MultimediaModel the model
Returns:
VideoSegment the newly created VideoSegment resource