|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.server.MaryProperties
public class MaryProperties
A static class reading once, at program start, properties from a number of external property files, and providing them via static getter methods to anyone wishing to read them. At program start, this will read all the config files in the MARY_BASE/conf directory that end in *.config. See the config files for more information.
| Constructor Summary | |
|---|---|
MaryProperties()
|
|
| Method Summary | |
|---|---|
static java.util.Vector<java.lang.String> |
effectClasses()
Names of the classes to use as audio effects. |
static java.util.Vector<java.lang.String> |
effectHelpTexts()
Help text of audio effects. |
static java.util.Vector<java.lang.String> |
effectNames()
Names of audio effects. |
static java.util.Vector<java.lang.String> |
effectSampleParams()
Sample Parameters of audio effects. |
static boolean |
getAutoBoolean(java.lang.String property)
Get or infer a boolean property from the underlying properties. |
static boolean |
getAutoBoolean(java.lang.String property,
boolean defaultValue)
Get or infer a boolean property from the underlying properties. |
static boolean |
getBoolean(java.lang.String property)
Get a boolean property from the underlying properties. |
static boolean |
getBoolean(java.lang.String property,
boolean defaultValue)
Get a boolean property from the underlying properties. |
static java.lang.Class |
getClass(java.lang.String property)
Get a Class property from the underlying properties. |
static java.lang.Class |
getClass(java.lang.String property,
java.lang.Class defaultValue)
Get a Class property from the underlying properties. |
static java.lang.String |
getFilename(java.lang.String property)
Get a filename property from the underlying properties. |
static java.lang.String |
getFilename(java.lang.String property,
java.lang.String defaultValue)
Get a filename property from the underlying properties. |
static int |
getInteger(java.lang.String property)
Get an integer property from the underlying properties. |
static int |
getInteger(java.lang.String property,
int defaultValue)
Get a property from the underlying properties. |
static java.lang.String |
getProperty(java.lang.String property)
Get a property from the underlying properties. |
static java.lang.String |
getProperty(java.lang.String property,
java.lang.String defaultValue)
Get a property from the underlying properties. |
static java.lang.String |
localePrefix(java.util.Locale locale)
Provide the config file prefix used for different locales in the config files. |
static java.lang.Object[] |
localSchemas()
An Object[] containing File objects referencing local Schema files |
static java.lang.String |
maryBase()
The mary base directory, e.g. |
static java.util.Vector<java.lang.String> |
moduleInitInfo()
Names of the classes to use as modules, plus optional parameter info. |
static boolean |
needAutoBoolean(java.lang.String property)
Get or infer a boolean property from the underlying properties, throwing an exception if it is not defined. |
static boolean |
needBoolean(java.lang.String property)
Get a boolean property from the underlying properties, throwing an exception if it is not defined. |
static java.lang.Class |
needClass(java.lang.String property)
Get a Class property from the underlying properties, throwing an exception if it is not defined. |
static java.lang.String |
needFilename(java.lang.String property)
Get a filename property from the underlying properties, throwing an exception if it is not defined. |
static int |
needInteger(java.lang.String property)
Get an integer property from the underlying properties, throwing an exception if it is not defined. |
static java.lang.String |
needProperty(java.lang.String property)
Get a property from the underlying properties, throwing an exception if it is not defined. |
static void |
readProperties()
Read the properties from property files and command line. |
static java.util.Vector<java.lang.String> |
synthesizerClasses()
Names of the classes to use as waveform synthesizers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaryProperties()
| Method Detail |
|---|
public static java.lang.String maryBase()
public static java.util.Vector<java.lang.String> moduleInitInfo()
for details on expected format.public static java.util.Vector<java.lang.String> synthesizerClasses()
public static java.util.Vector<java.lang.String> effectClasses()
public static java.util.Vector<java.lang.String> effectNames()
public static java.util.Vector<java.lang.String> effectSampleParams()
public static java.util.Vector<java.lang.String> effectHelpTexts()
public static java.lang.Object[] localSchemas()
public static void readProperties()
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String getProperty(java.lang.String property)
property - the property requested
public static boolean getBoolean(java.lang.String property)
property - the property requested
public static boolean getAutoBoolean(java.lang.String property)
property - the property requested
public static int getInteger(java.lang.String property)
property - the property requested
public static java.lang.String getFilename(java.lang.String property)
property - the property requested
public static java.lang.Class getClass(java.lang.String property)
property - the property requested
public static java.lang.String getProperty(java.lang.String property,
java.lang.String defaultValue)
property - the property requesteddefaultValue - the value to return if the property is not defined
public static boolean getBoolean(java.lang.String property,
boolean defaultValue)
property - the property requesteddefaultValue - the value to return if the property is not defined
public static boolean getAutoBoolean(java.lang.String property,
boolean defaultValue)
property - the property requesteddefaultValue - the value to return if the property is not defined
public static int getInteger(java.lang.String property,
int defaultValue)
property - the property requesteddefaultValue - the value to return if the property is not defined
public static java.lang.String getFilename(java.lang.String property,
java.lang.String defaultValue)
property - the property requesteddefaultValue - the value to return if the property is not defined
public static java.lang.Class getClass(java.lang.String property,
java.lang.Class defaultValue)
property - the property requesteddefaultValue - the value to return if the property is not defined
public static java.lang.String needProperty(java.lang.String property)
throws NoSuchPropertyException
property - the property required
NoSuchPropertyException - if the property is not defined.
public static boolean needBoolean(java.lang.String property)
throws NoSuchPropertyException
property - the property requested
NoSuchPropertyException - if the property is not defined.
public static boolean needAutoBoolean(java.lang.String property)
throws NoSuchPropertyException
property - the property requested
NoSuchPropertyException - if the property is not defined.
public static int needInteger(java.lang.String property)
throws NoSuchPropertyException
property - the property requested
NoSuchPropertyException - if the property is not defined.
public static java.lang.String needFilename(java.lang.String property)
throws NoSuchPropertyException
property - the property requested
NoSuchPropertyException - if the property is not defined or the value is not a valid filename
public static java.lang.Class needClass(java.lang.String property)
throws NoSuchPropertyException
property - the property requested
NoSuchPropertyException - if the property is not defined or the value is not a valid classpublic static java.lang.String localePrefix(java.util.Locale locale)
locale -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||