Interface Textual
- All Superinterfaces:
XmlElement
- All Known Implementing Classes:
TextualImpl
Textual is a generic text type:
<complexType name="TextualBaseType" abstract="true">
<simpleContent>
<extension base="string">
<attribute ref="xml:lang" use="optional"/>
<attribute name="phoneticTranscription" use="optional">
<simpleType>
<list itemType="mpeg7:PhoneType"/>
</simpleType>
</attribute>
<attribute name="phoneticAlphabet" type="mpeg7:phoneticAlphabetType" use="optional" default="sampa"/>
</extension>
</simpleContent>
</complexType>
-
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.Methods inherited from interface org.opencastproject.mediapackage.XmlElement
toXml
-
Method Details
-
setText
Sets the text.- Parameters:
text- the text
-
getText
String getText()Returns the actual text.- Returns:
- the text
-
setLanguage
Sets the language, which must correspond to the defininition ofxml:lang.- Parameters:
language- the language
-
getLanguage
String getLanguage()Returns the text's language.- Returns:
- the language
-
setPhoneticTranscription
Sets the phonetic transcription and specifies which alphabet was used to produce it.- Parameters:
transcription- the transcriptionalphabet- the alphabet
-
getPhoneticTranscription
String getPhoneticTranscription()Returns the optional phonetic transcription.- Returns:
- the phonetic transcription
-
getPhoneticAlphabet
String getPhoneticAlphabet()Returns the optional phonetic alphabet or the default valuesampaif no alphabet has been specified.- Returns:
- the phonetic alphabet
-