Class GlossaryEntry

    • Constructor Summary

      Constructors 
      Constructor Description
      GlossaryEntry​(java.lang.String src, java.lang.String[] loc, java.lang.String[] com, boolean[] fromPriorityGlossary, java.lang.String[] origins)  
      GlossaryEntry​(java.lang.String src, java.lang.String loc, java.lang.String com, boolean fromPriorityGlossary, java.lang.String origin)  
    • Constructor Detail

      • GlossaryEntry

        public GlossaryEntry​(java.lang.String src,
                             java.lang.String[] loc,
                             java.lang.String[] com,
                             boolean[] fromPriorityGlossary,
                             java.lang.String[] origins)
      • GlossaryEntry

        public GlossaryEntry​(java.lang.String src,
                             java.lang.String loc,
                             java.lang.String com,
                             boolean fromPriorityGlossary,
                             java.lang.String origin)
    • Method Detail

      • getSrcText

        public java.lang.String getSrcText()
      • getLocText

        public java.lang.String getLocText()
        Return the first target-language term string. Glossary entries can have multiple target strings if they have been combined for display purposes. Access all target strings with getLocTerms(boolean).
        Returns:
        The first target-language term string
      • getLocTerms

        public java.lang.String[] getLocTerms​(boolean uniqueOnly)
        Return each individual target-language term that corresponds to the source term.
        Parameters:
        uniqueOnly - Whether or not to filter duplicates from the list
        Returns:
        All target-language terms
      • getCommentText

        public java.lang.String getCommentText()
        Return the first comment string. Glossary entries can have multiple comment strings if they have been combined for display purposes. Access all comment strings with getComments().
        Returns:
        The first comment string
      • getComments

        public java.lang.String[] getComments()
      • getPriority

        public boolean getPriority()
      • getPriorities

        public boolean[] getPriorities()
      • getOrigins

        public java.lang.String[] getOrigins​(boolean uniqueOnly)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object