public class MaryDataType extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MaryDataType.Traits |
Modifier and Type | Field and Description |
---|---|
static MaryDataType |
ACOUSTPARAMS |
static MaryDataType |
ALLOPHONES |
static MaryDataType |
APML |
static MaryDataType |
AUDIO |
static MaryDataType.Traits |
BINARY |
static MaryDataType |
DURATIONS |
static MaryDataType |
EMOTIONML |
static MaryDataType.Traits |
EXTERNAL_MARKUP |
static MaryDataType |
FESTIVAL_UTT |
static MaryDataType |
HALFPHONE_TARGETFEATURES |
static MaryDataType |
HTSCONTEXT |
static MaryDataType |
INTONATION |
static MaryDataType.Traits |
MARYXML |
static MaryDataType |
PARTSOFSPEECH |
static MaryDataType |
PHONEMES |
static MaryDataType.Traits |
PLAIN_TEXT |
static MaryDataType |
PRAAT_TEXTGRID |
static MaryDataType |
RAWMARYXML |
static MaryDataType |
REALISED_ACOUSTPARAMS |
static MaryDataType |
REALISED_DURATIONS |
static MaryDataType |
SABLE |
static MaryDataType |
SIMPLEPHONEMES |
static MaryDataType |
SSML |
static MaryDataType |
TARGETFEATURES |
static MaryDataType |
TEXT |
static MaryDataType |
TOKENS |
static MaryDataType.Traits |
UTTERANCES |
static MaryDataType |
WORDS |
Constructor and Description |
---|
MaryDataType(String name,
boolean isInputType,
boolean isOutputType,
MaryDataType.Traits traits) |
MaryDataType(String name,
boolean isInputType,
boolean isOutputType,
MaryDataType.Traits traits,
String rootElement) |
Modifier and Type | Method and Description |
---|---|
String |
endMarker() |
String |
exampleText(Locale locale)
Provide an example text for this data type, for the given locale, if one is available.
|
static MaryDataType |
get(String name)
Look up a data type by name.
|
static List<MaryDataType> |
getDataTypes()
Provide a list of known data types, i.e.
|
static String |
getExampleText(MaryDataType type,
Locale locale)
Get an example text for the given type and the given locale.
|
static List<MaryDataType> |
getInputTypes()
Provide the list of all registered data types that can be used as input.
|
static Vector<String> |
getInputTypeStrings()
Provide the names of all registered data types that can be used as input.
|
static List<MaryDataType> |
getOutputTypes()
Provide the list of all registered data types that can be used as output.
|
static Vector<String> |
getOutputTypeStrings()
Provide the names of all registered data types that can be used as output.
|
static boolean |
getRegistrationComplete()
Determine whether or not the registration is complete.
|
protected MaryDataType.Traits |
getTraits() |
boolean |
isInputType() |
boolean |
isMaryXML() |
boolean |
isOutputType() |
boolean |
isTextType() |
boolean |
isXMLType() |
String |
name() |
static void |
registerDataType(MaryDataType type) |
String |
rootElement() |
static void |
setRegistrationComplete()
Indicate that the registration is now complete.
|
String |
toString() |
public static final MaryDataType.Traits PLAIN_TEXT
public static final MaryDataType.Traits EXTERNAL_MARKUP
public static final MaryDataType.Traits MARYXML
public static final MaryDataType.Traits UTTERANCES
public static final MaryDataType.Traits BINARY
public static final MaryDataType ACOUSTPARAMS
public static final MaryDataType ALLOPHONES
public static final MaryDataType APML
public static final MaryDataType AUDIO
public static final MaryDataType DURATIONS
public static final MaryDataType EMOTIONML
public static final MaryDataType FESTIVAL_UTT
public static final MaryDataType HALFPHONE_TARGETFEATURES
public static final MaryDataType HTSCONTEXT
public static final MaryDataType INTONATION
public static final MaryDataType PARTSOFSPEECH
public static final MaryDataType PHONEMES
public static final MaryDataType PRAAT_TEXTGRID
public static final MaryDataType RAWMARYXML
public static final MaryDataType REALISED_ACOUSTPARAMS
public static final MaryDataType REALISED_DURATIONS
public static final MaryDataType SABLE
public static final MaryDataType SIMPLEPHONEMES
public static final MaryDataType SSML
public static final MaryDataType TARGETFEATURES
public static final MaryDataType TEXT
public static final MaryDataType TOKENS
public static final MaryDataType WORDS
public MaryDataType(String name, boolean isInputType, boolean isOutputType, MaryDataType.Traits traits)
public MaryDataType(String name, boolean isInputType, boolean isOutputType, MaryDataType.Traits traits, String rootElement)
public String name()
public boolean isInputType()
public boolean isOutputType()
public boolean isTextType()
public boolean isXMLType()
public boolean isMaryXML()
public String rootElement()
public String endMarker()
public String exampleText(Locale locale)
locale
- localeprotected MaryDataType.Traits getTraits()
public static void registerDataType(MaryDataType type)
public static boolean getRegistrationComplete()
public static void setRegistrationComplete() throws IllegalStateException
IllegalStateException
- if called when registration was already completed before.public static Vector<String> getInputTypeStrings()
IllegalStateException
- if this method is called while registration is ongoing.public static Vector<String> getOutputTypeStrings()
IllegalStateException
- if this method is called while registration is ongoing.public static List<MaryDataType> getInputTypes()
IllegalStateException
- if this method is called while registration is ongoing.public static List<MaryDataType> getOutputTypes()
IllegalStateException
- if this method is called while registration is ongoing.public static MaryDataType get(String name)
name
- the name of the data typepublic static List<MaryDataType> getDataTypes()
public static String getExampleText(MaryDataType type, Locale locale)
type
- typelocale
- localeCopyright © 2000–2016 DFKI GmbH. All rights reserved.