Class AudioElement

java.lang.Object
musichub.business.AudioElement
Direct Known Subclasses:
AudioBook, Song

public abstract class AudioElement extends Object
  • Field Details

    • title

      protected String title
    • artist

      protected String artist
    • lengthInSeconds

      protected int lengthInSeconds
    • uuid

      protected UUID uuid
    • content

      protected String content
  • Constructor Details

    • AudioElement

      public AudioElement(String title, String artist, int lengthInSeconds, String id, String content)
    • AudioElement

      public AudioElement(String title, String artist, int lengthInSeconds, String content)
    • AudioElement

      public AudioElement(Element xmlElement)
  • Method Details

    • getUUID

      public UUID getUUID()
    • getArtist

      public String getArtist()
    • getTitle

      public String getTitle()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • createXMLElement

      public void createXMLElement(Document document, Element parentElement)