Class Record

All Implemented Interfaces:
IExtendable

public final class Record extends ExtendableObject
  • Method Details

    • getUuid

      public UUID getUuid()
    • setUuid

      public void setUuid(UUID id)
    • getSpeaker

      public Participant getSpeaker()
    • setSpeaker

      public void setSpeaker(Participant participant)
    • getSegment

      public Tier<MediaSegment> getSegment()
    • setSegment

      public void setSegment(Tier<MediaSegment> media)
    • isExcludeFromSearches

      public boolean isExcludeFromSearches()
    • setExcludeFromSearches

      public void setExcludeFromSearches(boolean excluded)
    • getOrthography

      public Tier<Orthography> getOrthography()
    • setOrthography

      public void setOrthography(Tier<Orthography> ortho)
    • getIPATarget

      public Tier<IPATranscript> getIPATarget()
    • setIPATarget

      public void setIPATarget(Tier<IPATranscript> ipa)
    • getIPAActual

      public Tier<IPATranscript> getIPAActual()
    • setIPAActual

      public void setIPAActual(Tier<IPATranscript> ipa)
    • getPhoneAlignment

      public Tier<PhoneMap> getPhoneAlignment()
    • setPhoneAlignment

      public void setPhoneAlignment(Tier<PhoneMap> phoneAlignment)
    • getNotes

      public Tier<TierString> getNotes()
    • setNotes

      public void setNotes(Tier<TierString> notes)
    • getTierType

      public Class<?> getTierType(String name)
    • getTier

      public <T> Tier<T> getTier(String name, Class<T> type)
    • getTier

      public Tier<?> getTier(String name)
    • getExtraTierNames

      public Set<String> getExtraTierNames()
    • getTiersOfType

      public <T> List<Tier<T>> getTiersOfType(Class<T> type)
    • hasTier

      public boolean hasTier(String name)
    • putTier

      public void putTier(Tier<?> tier)
    • removeTier

      public void removeTier(String name)
    • getNumberOfComments

      public int getNumberOfComments()
    • getComment

      public Comment getComment(int idx)
    • addComment

      public void addComment(Comment comment)
    • removeComment

      public void removeComment(Comment comment)
    • removeComment

      public void removeComment(int idx)
    • numberOfGroups

      public int numberOfGroups()
      Get the number of aligned groups in the record. The number of groups for a record is determined by the number of groups in the orthoraphy tier.
      Returns:
      number of groups
    • getGroup

      public Group getGroup(int idx)
      Get the group at the specified index
      Parameters:
      idx -
      Returns:
      the specified group
    • removeGroup

      public void removeGroup(int idx)
      Delete the group at the specified index. This will affect all grouped tiers.
      Parameters:
      idx - the group to remove
    • addGroup

      public Group addGroup()
      Add a new group to the end of the record data
      Returns:
      the new group
    • addGroup

      public Group addGroup(int idx)
      Add a new group at the specified index. This method will add a new group value to each grouped tier.
      Parameters:
      idx -
      Returns:
      the new group
      Throws:
      ArrayIndexOutOfBoundsException - if idx is out of bounds
    • mergeGroups

      public int mergeGroups(int grp1, int grp2)
      Merge the two specified gropus.
      Parameters:
      grp1 -
      grp2 -
      Returns:
      the word index of grp1 where the merge occured.
      Throws:
      IllegalArgumentException - if grp1 or grp2 are not adjacent groups or grp2 invalid input: '<'= grp1
      ArrayIndexOutOfBoundsException - if either grp1 or grp2 is out of bounds
    • splitGroup

      public Group splitGroup(int grp, int wrd)
      Split groups based on group and aligned word index.
      Parameters:
      grp -
      wrd -
      Returns:
      the new group created by the split
      Throws:
      ArrayIndexOutOfBoundsException - if either grp or wrd are out of bounds