Class AbstractOrthographyElement

java.lang.Object
ca.phon.orthography.AbstractOrthographyElement
All Implemented Interfaces:
IExtendable, OrthographyElement
Direct Known Subclasses:
AnnotatedOrthographyElement, Duration, Error, Freecode, GroupAnnotation, InternalMedia, Italic, Linker, LongFeature, Marker, Nonvocal, Overlap, OverlapPoint, Pause, PhoneticGroup, Postcode, Quotation, Replacement, Separator, TagMarker, Terminator, ToneMarker, Underline, UtteranceLanguage, Word

public abstract class AbstractOrthographyElement extends Object implements OrthographyElement
Abstract implementation of OrthographyElement implementing extension support.
  • Constructor Details

    • AbstractOrthographyElement

      public AbstractOrthographyElement()
  • Method Details

    • 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