org.stanwood.media.store.xmlstore
Class XMLVideoFile

java.lang.Object
  extended by org.stanwood.media.store.xmlstore.XMLVideoFile
All Implemented Interfaces:
IVideoFile

public class XMLVideoFile
extends java.lang.Object
implements IVideoFile

Video file information for the store XMLStore2, that access the information from the XML File


Constructor Summary
XMLVideoFile(java.io.File rootMediaDir, org.w3c.dom.Element fileNode)
          The constructor
 
Method Summary
 java.io.File getLocation()
          Used to get the current location of the video file
 java.io.File getMediaDirectory()
          Returns the media directory the file is in
 java.io.File getOrginalLocation()
          Used to get the original location of the video file.
 java.lang.Integer getPart()
          Used to get the part number of the file
 void setLocation(java.io.File location)
          Used to set the current location of the video file
 void setOrginalLocation(java.io.File orginalLocation)
          Used to set the original location of the video file.
 void setPart(java.lang.Integer part)
          Used to set the part number of the file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLVideoFile

public XMLVideoFile(java.io.File rootMediaDir,
                    org.w3c.dom.Element fileNode)
The constructor

Parameters:
rootMediaDir - The media directory location
fileNode - The root xml node of the store item
Method Detail

getLocation

public java.io.File getLocation()
Used to get the current location of the video file

Specified by:
getLocation in interface IVideoFile
Returns:
The current location of the video file

getOrginalLocation

public java.io.File getOrginalLocation()
Used to get the original location of the video file. This is the location it was first seen in.

Specified by:
getOrginalLocation in interface IVideoFile
Returns:
The original location of the file

setOrginalLocation

public void setOrginalLocation(java.io.File orginalLocation)
Used to set the original location of the video file. This is the location it was first seen in.

Specified by:
setOrginalLocation in interface IVideoFile
Parameters:
orginalLocation - The original location of the file

setLocation

public void setLocation(java.io.File location)
Used to set the current location of the video file

Specified by:
setLocation in interface IVideoFile
Parameters:
location - The current location of the video file

getPart

public java.lang.Integer getPart()
Used to get the part number of the file

Specified by:
getPart in interface IVideoFile
Returns:
The part number or null if not known/supported

setPart

public void setPart(java.lang.Integer part)
Used to set the part number of the file

Specified by:
setPart in interface IVideoFile
Parameters:
part - The part number or null if not known/supported

getMediaDirectory

public java.io.File getMediaDirectory()
Returns the media directory the file is in

Specified by:
getMediaDirectory in interface IVideoFile
Returns:
the media directory the file is in