public class MaryProperties extends Object
Constructor and Description |
---|
MaryProperties() |
Modifier and Type | Method and Description |
---|---|
static Vector<String> |
effectClasses()
Names of the classes to use as audio effects.
|
static boolean |
getAutoBoolean(String property)
Get or infer a boolean property from the underlying properties.
|
static boolean |
getAutoBoolean(String property,
boolean defaultValue)
Get or infer a boolean property from the underlying properties.
|
static boolean |
getBoolean(String property)
Get a boolean property from the underlying properties.
|
static boolean |
getBoolean(String property,
boolean defaultValue)
Get a boolean property from the underlying properties.
|
static String |
getFilename(String property)
Get a filename property from the underlying properties.
|
static String |
getFilename(String property,
String defaultValue)
Get a filename property from the underlying properties.
|
static int |
getInteger(String property)
Get an integer property from the underlying properties.
|
static int |
getInteger(String property,
int defaultValue)
Get a property from the underlying properties.
|
static List<String> |
getList(String propName) |
static String |
getProperty(String property)
Get a property from the underlying properties.
|
static String |
getProperty(String property,
String defaultValue)
Get a property from the underlying config files.
|
static InputStream |
getStream(String propertyName)
For the named property, attempt to get an open input stream.
|
static String |
localePrefix(Locale locale)
Provide the config file prefix used for different locales in the config files.
|
static String |
maryBase()
The mary base directory, e.g.
|
static List<String> |
moduleInitInfo()
Names of the classes to use as modules, plus optional parameter info.
|
static boolean |
needAutoBoolean(String property)
Get or infer a boolean property from the underlying properties, throwing an exception if it is not defined.
|
static boolean |
needBoolean(String property)
Get a boolean property from the underlying properties, throwing an exception if it is not defined.
|
static Class |
needClass(String property)
Get a Class property from the underlying properties, throwing an exception if it is not defined.
|
static String |
needFilename(String property)
Get a filename property from the underlying properties, throwing an exception if it is not defined.
|
static int |
needInteger(String property)
Get an integer property from the underlying properties, throwing an exception if it is not defined.
|
static String |
needProperty(String property)
Get a property from the underlying properties, throwing an exception if it is not defined.
|
static InputStream |
needStream(String propertyName)
For the named property, attempt to get an open input stream.
|
static List<String> |
synthesizerClasses()
Names of the classes to use as waveform synthesizers.
|
public static String maryBase()
public static String getProperty(String property, String defaultValue)
property
- the property requesteddefaultValue
- the value to return if the property is not definedpublic static List<String> moduleInitInfo()
for details on expected format.
public static List<String> synthesizerClasses()
public static Vector<String> effectClasses()
public static String getProperty(String property)
property
- the property requestedpublic static boolean getBoolean(String property)
property
- the property requestedpublic static boolean getAutoBoolean(String property)
property
- the property requestedpublic static int getInteger(String property)
property
- the property requestedpublic static String getFilename(String property)
property
- the property requestedpublic static boolean getBoolean(String property, boolean defaultValue)
property
- the property requesteddefaultValue
- the value to return if the property is not definedpublic static boolean getAutoBoolean(String property, boolean defaultValue)
property
- the property requesteddefaultValue
- the value to return if the property is not definedpublic static int getInteger(String property, int defaultValue)
property
- the property requesteddefaultValue
- the value to return if the property is not definedpublic static String getFilename(String property, String defaultValue)
property
- the property requesteddefaultValue
- the value to return if the property is not definedpublic static String needProperty(String property) throws NoSuchPropertyException
property
- the property requiredNoSuchPropertyException
- if the property is not defined.public static boolean needBoolean(String property) throws NoSuchPropertyException
property
- the property requestedNoSuchPropertyException
- if the property is not defined.public static boolean needAutoBoolean(String property) throws NoSuchPropertyException
property
- the property requestedNoSuchPropertyException
- if the property is not defined.public static int needInteger(String property) throws NoSuchPropertyException
property
- the property requestedNoSuchPropertyException
- if the property is not defined.public static String needFilename(String property) throws NoSuchPropertyException
property
- the property requestedNoSuchPropertyException
- if the property is not defined or the value is not a valid filenamepublic static InputStream needStream(String propertyName) throws NoSuchPropertyException, FileNotFoundException, MaryConfigurationException
propertyName
- the name of a property defined in one of the mary config files.NoSuchPropertyException
- if the property is not definedFileNotFoundException
- if the property value is a file name and the file cannot be openedMaryConfigurationException
- if the property value is a classpath entry which cannot be openedpublic static InputStream getStream(String propertyName) throws FileNotFoundException, MaryConfigurationException
propertyName
- the name of a property defined in one of the mary config files.FileNotFoundException
- if the property value is a file name and the file cannot be openedMaryConfigurationException
- if the property value is a classpath entry which cannot be openedpublic static Class needClass(String property) throws NoSuchPropertyException
property
- the property requestedNoSuchPropertyException
- if the property is not defined or the value is not a valid classpublic static String localePrefix(Locale locale)
locale
- localeCopyright © 2000–2016 DFKI GmbH. All rights reserved.