Class Speech_impl

java.lang.Object
backend.speech.Speech_impl
All Implemented Interfaces:
ISpeech

public class Speech_impl extends Object implements ISpeech
Implementierung des ISpeech-Interfaces.
Author:
Philipp Hein
  • Constructor Details

    • Speech_impl

      public Speech_impl(String _id, String text, String speaker, IProtocol protocol, ArrayList<Object> textContent, IAgenda agenda, Speaker speakerObject, String videoUrl)
      Parameters:
      _id - ID Speech
      text - Text Speech
      speaker - Speaker ID
      protocol - Protocol Speech
      textContent - Textinhalt Speech
      agenda - Agenda Speech
      speakerObject - Speaker Objekt
  • Method Details

    • getSpeakerObject

      public Speaker getSpeakerObject()
      Specified by:
      getSpeakerObject in interface ISpeech
      Returns:
      Speaker Objekt
    • setSpeakerObject

      public void setSpeakerObject(Speaker speakerObject)
      Description copied from interface: ISpeech
      Setzt Speaker Objekt
      Specified by:
      setSpeakerObject in interface ISpeech
      Parameters:
      speakerObject - neu
    • get_id

      public String get_id()
      Specified by:
      get_id in interface ISpeech
      Returns:
      ID Speech
    • set_id

      public void set_id(String _id)
      Description copied from interface: ISpeech
      Setzt ID Speech
      Specified by:
      set_id in interface ISpeech
      Parameters:
      _id - neu
    • getText

      public String getText()
      Specified by:
      getText in interface ISpeech
      Returns:
      Text Speech
    • setText

      public void setText(String text)
      Description copied from interface: ISpeech
      Setzt Text Speech
      Specified by:
      setText in interface ISpeech
      Parameters:
      text - neu
    • getSpeaker

      public String getSpeaker()
      Specified by:
      getSpeaker in interface ISpeech
      Returns:
      Speaker ID
    • setSpeaker

      public void setSpeaker(String speaker)
      Description copied from interface: ISpeech
      Setzt Speaker ID
      Specified by:
      setSpeaker in interface ISpeech
      Parameters:
      speaker - neu
    • getProtocol

      public IProtocol getProtocol()
      Specified by:
      getProtocol in interface ISpeech
      Returns:
      Protocol Speech
    • setProtocol

      public void setProtocol(IProtocol protocol)
      Description copied from interface: ISpeech
      Setzt Protocol Speech
      Specified by:
      setProtocol in interface ISpeech
      Parameters:
      protocol - neu
    • getTextContent

      public ArrayList<Object> getTextContent()
      Specified by:
      getTextContent in interface ISpeech
      Returns:
      Textinhalt Speech
    • setTextContent

      public void setTextContent(ArrayList<Object> textContent)
      Description copied from interface: ISpeech
      Setzt Textinhalt Speech
      Specified by:
      setTextContent in interface ISpeech
      Parameters:
      textContent - neu
    • getAgenda

      public IAgenda getAgenda()
      Specified by:
      getAgenda in interface ISpeech
      Returns:
      Agenda Speech
    • setAgenda

      public void setAgenda(IAgenda agenda)
      Description copied from interface: ISpeech
      Setzt Agenda Speech
      Specified by:
      setAgenda in interface ISpeech
      Parameters:
      agenda - neu
    • getVideoId

      public String getVideoId()
      Gibt die Video-ID zurück.
      Returns:
      Video-ID
    • setVideoId

      public void setVideoId(String videoId)
      Setzt die Video-ID.
      Parameters:
      videoId - neue Video-ID
    • getVideoUrl

      public String getVideoUrl()
      Gibt die Video-URL zurück.
      Returns:
      Video URL als String
    • setVideoUrl

      public void setVideoUrl(String videoUrl)
      Setzt die Video URL.
      Parameters:
      videoUrl - neue Video URL
    • getVideoFileId

      public org.bson.types.ObjectId getVideoFileId()
      Gibt die Video ID zurück.
      Returns:
      Video ID als String
    • setVideoFileId

      public void setVideoFileId(org.bson.types.ObjectId videoFileId)
    • toCAS

      public org.apache.uima.jcas.JCas toCAS(LoadVideoFromGridFS loadVideoFromGridFS, boolean video) throws org.apache.uima.UIMAException, IOException
      Returns:
      Ein fertig erstelltes JCas-Dokument, die in DUUI oder andere Pipelines verwendet werden können.
      Throws:
      org.apache.uima.UIMAException
      IOException
    • toTex

      public String toTex(boolean disableTikz) throws IOException, freemarker.template.TemplateException
      Specified by:
      toTex in interface ISpeech
      Throws:
      IOException
      freemarker.template.TemplateException
    • toXML

      public String toXML() throws IOException, freemarker.template.TemplateException
      Throws:
      IOException
      freemarker.template.TemplateException
    • toPDF

      public byte[] toPDF(boolean disableTikz) throws IOException, freemarker.template.TemplateException
      Throws:
      IOException
      freemarker.template.TemplateException
    • toDocument

      public org.bson.Document toDocument()