Package ca.phon.ipa

Class CompoundPhone

All Implemented Interfaces:
IExtendable, CombiningDiacritics, PrefixDiacritics, SuffixDiacritics, Visitable<IPAElement>

public final class CompoundPhone extends Phone
A compound Phone consists of two phones connected by a ligature.
  • Constructor Details

    • CompoundPhone

      public CompoundPhone()
  • Method Details

    • getFirstPhone

      public Phone getFirstPhone()
      Get the first phone in this compound
      Returns:
      the first phone
    • setFirstPhone

      public void setFirstPhone(Phone phone)
      Set the first phone for this compound
      Parameters:
      phone -
    • getBase

      public String getBase()
      Get the base for the compound phone
      Overrides:
      getBase in class Phone
      Returns:
      the base of the first phone plus the base of the second phone
    • getSecondPhone

      public Phone getSecondPhone()
      Get second phone
      Returns:
      the second phone
    • setSecondPhone

      public void setSecondPhone(Phone phone)
      Set second phone
      Parameters:
      phone -
    • getLigature

      public Character getLigature()
      Get the ligature used
      Returns:
      the ligature glyph
    • setLigature

      public void setLigature(Character ligature)
      Set the ligature
      Parameters:
      ligature -
    • getToneNumberDiacritics

      public Diacritic[] getToneNumberDiacritics()
      Description copied from class: Phone
      Get the tone diacritics for this phone.
      Overrides:
      getToneNumberDiacritics in class Phone
      Returns:
      tone diacritics
    • _getFeatureSet

      protected FeatureSet _getFeatureSet()
      Description copied from class: IPAElement
      Private method to return the feature set for the IPAElement. This return value for this method can be changed by using the IPAElement.setFeatureSet(FeatureSet) method.
      Overrides:
      _getFeatureSet in class Phone
      Returns:
      the phones feature set
    • getText

      public String getText()
      Description copied from class: IPAElement
      Get the text for this phone
      Overrides:
      getText in class Phone
      Returns:
      the phone string