Lizzy v1.1.1

christophedelory.playlist.mpcpl
Class Resource

java.lang.Object
  extended by christophedelory.playlist.mpcpl.Resource

public class Resource
extends Object

A MPCPL resource definition.

Since:
0.3.0
Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Resource()
           
 
Method Summary
 String getFilename()
          Returns the file name of this resource.
 String getSubtitle()
          Returns the file name of an optional subtitle.
 String getType()
          Returns the type of this resource.
 void setFilename(String filename)
          Initializes the file name of this resource.
 void setSubtitle(String subtitle)
          Initializes the file name of an associated subtitle.
 void setType(String type)
          Initializes the type of this resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

getFilename

public String getFilename()
Returns the file name of this resource.

Returns:
the resource file name. May be null if not yet initialized.
See Also:
setFilename(java.lang.String)

setFilename

public void setFilename(String filename)
Initializes the file name of this resource.

Parameters:
filename - a resource file name. Shall not be null.
Throws:
NullPointerException - if filename is null.
See Also:
getFilename()

getType

public String getType()
Returns the type of this resource. Defaults to "0".

Returns:
the resource type. Shall not be null.
See Also:
setType(java.lang.String)

setType

public void setType(String type)
Initializes the type of this resource.

Parameters:
type - a resource type. Shall not be null.
Throws:
NullPointerException - if type is null.
See Also:
getType()

getSubtitle

public String getSubtitle()
Returns the file name of an optional subtitle. Example: "sub1.srt".

Returns:
a subtitle file name. May be null.
See Also:
setSubtitle(java.lang.String)

setSubtitle

public void setSubtitle(String subtitle)
Initializes the file name of an associated subtitle.

Parameters:
subtitle - a subtitle file name. May be null.
See Also:
getSubtitle()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.