Class TextualImpl
java.lang.Object
org.opencastproject.metadata.mpeg7.TextualImpl
- All Implemented Interfaces:
org.opencastproject.mediapackage.XmlElement,Textual
Default implementation of a
TextualBase mpeg-7 element.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new textual base element.TextualImpl(String text) Creates a new textual base element.TextualImpl(String[] words) Creates a new Textual element from a number of words.TextualImpl(String[] words, String language) Creates a new textual base element.TextualImpl(String text, String language) Creates a new textual base element. -
Method Summary
Modifier and TypeMethodDescriptionReturns the text's language.Returns the optional phonetic alphabet or the default valuesampaif no alphabet has been specified.Returns the optional phonetic transcription.getText()Returns the actual text.voidsetLanguage(String language) Sets the language, which must correspond to the defininition ofxml:lang.voidsetPhoneticTranscription(String transcription, String alphabet) Sets the phonetic transcription and specifies which alphabet was used to produce it.voidSets the text.
-
Field Details
-
DEFAULT_PHONETIC_ALPHABET
The default phonetic alphabet- See Also:
-
text
The text -
language
The text -
transcription
The phonetic transcription -
alphabet
The phonetic alphabet
-
-
Constructor Details
-
TextualImpl
public TextualImpl()Creates a new textual base element. -
TextualImpl
Creates a new textual base element.- Parameters:
text- the text- Throws:
IllegalArgumentException- if the text isnullor empty
-
TextualImpl
Creates a new Textual element from a number of words.- Parameters:
words- the words
-
TextualImpl
Creates a new textual base element.- Parameters:
text- the text- Throws:
IllegalArgumentException- if the text isnullor empty
-
TextualImpl
Creates a new textual base element.- Parameters:
words- the words- Throws:
IllegalArgumentException- if the words isnullor empty
-
-
Method Details
-
getLanguage
Returns the text's language.- Specified by:
getLanguagein interfaceTextual- Returns:
- the language
- See Also:
-
getPhoneticAlphabet
Returns the optional phonetic alphabet or the default valuesampaif no alphabet has been specified.- Specified by:
getPhoneticAlphabetin interfaceTextual- Returns:
- the phonetic alphabet
- See Also:
-
getPhoneticTranscription
Returns the optional phonetic transcription.- Specified by:
getPhoneticTranscriptionin interfaceTextual- Returns:
- the phonetic transcription
- See Also:
-
setText
Sets the text. -
getText
Returns the actual text. -
setLanguage
Sets the language, which must correspond to the defininition ofxml:lang.- Specified by:
setLanguagein interfaceTextual- Parameters:
language- the language- See Also:
-
setPhoneticTranscription
Sets the phonetic transcription and specifies which alphabet was used to produce it.- Specified by:
setPhoneticTranscriptionin interfaceTextual- Parameters:
transcription- the transcriptionalphabet- the alphabet- See Also:
-
toXml
- Specified by:
toXmlin interfaceorg.opencastproject.mediapackage.XmlElement- See Also:
-