TV-Browser 2.7.5 API

tvbrowser.core.plugin.programformating
Class GlobalPluginProgramFormating

java.lang.Object
  extended by util.program.AbstractPluginProgramFormating
      extended by tvbrowser.core.plugin.programformating.GlobalPluginProgramFormating

public class GlobalPluginProgramFormating
extends AbstractPluginProgramFormating

A class for global program configuration settings.

Since:
2.5.1
Author:
René Mach

Constructor Summary
  GlobalPluginProgramFormating()
          Creates an empty instance of this class.
protected GlobalPluginProgramFormating(String name, String titleValue, String contentValue, String encodingValue)
           
 
Method Summary
 boolean equals(Object o)
           
 String getContentValue()
          Gets the value for the content formating
 String getEncodingValue()
          Gets the value for the formating
 String getId()
          Gets the id of this instance.
 String getName()
          Gets the name of this configuration
 String getTitleValue()
          Gets the value for title formating
 boolean hasId(String id)
          Checks if this global program configuration has the given id.
 boolean isValid()
          Gets if the configuration is valid.
protected static GlobalPluginProgramFormating load(ObjectInputStream in)
           
protected  void loadData(ObjectInputStream in)
           
protected  void setContentValue(String value)
           
protected  void setEncodingValue(String value)
           
protected  void setName(String name)
           
protected  void setTitleValue(String value)
           
protected  void store(ObjectOutputStream out)
           
protected  void storeData(ObjectOutputStream out)
           
 String toString()
           
 
Methods inherited from class util.program.AbstractPluginProgramFormating
readData, writeData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlobalPluginProgramFormating

public GlobalPluginProgramFormating()
Creates an empty instance of this class.


GlobalPluginProgramFormating

protected GlobalPluginProgramFormating(String name,
                                       String titleValue,
                                       String contentValue,
                                       String encodingValue)
Method Detail

setName

protected void setName(String name)

setTitleValue

protected void setTitleValue(String value)

setContentValue

protected void setContentValue(String value)

setEncodingValue

protected void setEncodingValue(String value)

getContentValue

public String getContentValue()
Description copied from class: AbstractPluginProgramFormating
Gets the value for the content formating

Specified by:
getContentValue in class AbstractPluginProgramFormating
Returns:
The value for the content formating

getEncodingValue

public String getEncodingValue()
Description copied from class: AbstractPluginProgramFormating
Gets the value for the formating

Specified by:
getEncodingValue in class AbstractPluginProgramFormating
Returns:
The value for the formating

getName

public String getName()
Description copied from class: AbstractPluginProgramFormating
Gets the name of this configuration

Specified by:
getName in class AbstractPluginProgramFormating
Returns:
The name of this configuration

getTitleValue

public String getTitleValue()
Description copied from class: AbstractPluginProgramFormating
Gets the value for title formating

Specified by:
getTitleValue in class AbstractPluginProgramFormating
Returns:
The value for title formating

load

protected static GlobalPluginProgramFormating load(ObjectInputStream in)
                                            throws IOException,
                                                   ClassNotFoundException
Throws:
IOException
ClassNotFoundException

store

protected void store(ObjectOutputStream out)
              throws IOException
Throws:
IOException

loadData

protected void loadData(ObjectInputStream in)
                 throws IOException,
                        ClassNotFoundException
Specified by:
loadData in class AbstractPluginProgramFormating
Throws:
IOException
ClassNotFoundException

storeData

protected void storeData(ObjectOutputStream out)
                  throws IOException
Specified by:
storeData in class AbstractPluginProgramFormating
Throws:
IOException

hasId

public boolean hasId(String id)
Checks if this global program configuration has the given id.

Parameters:
id - The id to check.
Returns:
true if the ids are the same, false otherwise;

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

isValid

public boolean isValid()
Description copied from class: AbstractPluginProgramFormating
Gets if the configuration is valid.

Specified by:
isValid in class AbstractPluginProgramFormating
Returns:
If the configuration is valid

getId

public String getId()
Description copied from class: AbstractPluginProgramFormating
Gets the id of this instance.

Specified by:
getId in class AbstractPluginProgramFormating
Returns:
The id of this instance.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)