Class IPAElement

java.lang.Object
ca.phon.ipa.IPAElement
All Implemented Interfaces:
IExtendable, Visitable<IPAElement>
Direct Known Subclasses:
AlignmentMarker, CompoundWordMarker, Diacritic, IntonationGroup, IntraWordPause, Pause, Phone, PhoneticGroupMarker, PhonexMatcherReference, Sandhi, StressMarker, SyllableBoundary, ToneNumber, WordBoundary

public abstract class IPAElement extends Object implements Visitable<IPAElement>, IExtendable

IPAElements represent the atomic unit of IPA transcriptions. IPAElements are constructed using the create methods of IPAElementFactory.

  • Constructor Details

  • Method Details

    • _getFeatureSet

      protected abstract FeatureSet _getFeatureSet()
      Private method to return the feature set for the IPAElement.
      Returns:
      the feature set for the implementing type.
    • getText

      public abstract String getText()
      Get the text for this phone
      Returns:
      the phone string
    • syllableInfo

      public SyllableInfo syllableInfo()
      Get syllable information for this phone.
      Returns:
      the syllable information for the phone
    • overrideFeatureSet

      public FeatureSet overrideFeatureSet()
      Get override feature set for this phone.
      Returns:
      the override feature set or null if no override is defined.
    • featureSet

      public FeatureSet featureSet()
      Return the feature set for this IPAElement.
      Returns:
      the default feature set - derived by the implementing type or custom features if defined.
    • constituentType

      public SyllableConstituentType constituentType()
      Get constituent type for this phone.
      Returns:
      the syllable constituent type for the phone (if assigned)
    • stress

      public SyllableStress stress()
      Get syllable stress for this phone.
      Returns:
      the syllable stress for the phone
    • segregated

      public boolean segregated()
    • sonorityDistance

      public int sonorityDistance()
    • sonority

      public int sonority()
    • tone

      public ToneNumber tone()
    • isDiphthong

      public boolean isDiphthong()
    • syllableIndex

      public int syllableIndex()
    • accept

      public void accept(Visitor<IPAElement> phoneVisitor)
      Description copied from interface: Visitable
      Accept the given visitor.
      Specified by:
      accept in interface Visitable<IPAElement>
    • getExtensions

      public Set<Class<?>> getExtensions()
      Description copied from interface: IExtendable
      Return all extension types supported
      Specified by:
      getExtensions in interface IExtendable
    • getExtension

      public <T> T getExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Get the requested extension if available.
      Specified by:
      getExtension in interface IExtendable
      Returns:
      the capability object or null if the cability is not available
    • putExtension

      public <T> T putExtension(Class<T> cap, T impl)
      Description copied from interface: IExtendable
      Add a new extension.
      Specified by:
      putExtension in interface IExtendable
      Parameters:
      cap - the extension to add
      Returns:
      the added extension implementation
    • removeExtension

      public <T> T removeExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Remove a capability.
      Specified by:
      removeExtension in interface IExtendable
      Parameters:
      cap - the capability to remove
    • toString

      public String toString()
      Overrides:
      toString in class Object