net.sf.opensmus
Class MUSScriptMap

java.lang.Object
  extended by net.sf.opensmus.MUSScriptMap

public class MUSScriptMap
extends java.lang.Object

This class maps movie names to server side script classes configured in the ScriptMap.cfg file. Reserved for internal use of OpenSMUS.


Field Summary
 java.util.Properties m_props
          Properties set to store the script map table
 
Constructor Summary
MUSScriptMap(boolean enablescripting)
          Constructor
 
Method Summary
 java.lang.String[] getPropertyEntries(java.lang.String propertyName, java.lang.String separatorString)
          Returns an array of Strings associated with the property specified by propertyName.
 java.lang.String[] getScriptName(java.lang.String prop)
          Returns the name(s) of the server side script class configured for a particular movie.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_props

public java.util.Properties m_props
Properties set to store the script map table

Constructor Detail

MUSScriptMap

public MUSScriptMap(boolean enablescripting)
Constructor

Method Detail

getScriptName

public java.lang.String[] getScriptName(java.lang.String prop)
Returns the name(s) of the server side script class configured for a particular movie. If no entry matches the movie name in the script map the default ServerSideScript class is returned.
Reserved for internal use of OpenSMUS.


getPropertyEntries

public java.lang.String[] getPropertyEntries(java.lang.String propertyName,
                                             java.lang.String separatorString)
                                      throws PropertyNotFoundException
Returns an array of Strings associated with the property specified by propertyName. The method is used for entries that potentially have multiple values separated by a particular character or string.

Typically this will be used for space separated words: String[] entries = AppProperties.getInstance().getPropertyEntries("PropertyName", " ");

Parameters:
propertyName - the name of the property
separatorString - the string that separates each entry
Throws:
PropertyNotFoundException