Interface Textual

All Superinterfaces:
XmlElement
All Known Implementing Classes:
TextualImpl

public interface Textual extends XmlElement
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 Details

    • setText

      void setText(String text)
      Sets the text.
      Parameters:
      text - the text
    • getText

      String getText()
      Returns the actual text.
      Returns:
      the text
    • setLanguage

      void setLanguage(String language)
      Sets the language, which must correspond to the defininition of xml:lang.
      Parameters:
      language - the language
    • getLanguage

      String getLanguage()
      Returns the text's language.
      Returns:
      the language
    • setPhoneticTranscription

      void setPhoneticTranscription(String transcription, String alphabet)
      Sets the phonetic transcription and specifies which alphabet was used to produce it.
      Parameters:
      transcription - the transcription
      alphabet - 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 value sampa if no alphabet has been specified.
      Returns:
      the phonetic alphabet