Package org.omegat.gui.glossary
Class GlossaryEntry
- java.lang.Object
-
- org.omegat.gui.glossary.GlossaryEntry
-
- All Implemented Interfaces:
ITranslationEntry
public class GlossaryEntry extends java.lang.Object implements ITranslationEntry
An entry in the glossary.
-
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String[]
getComments()
java.lang.String
getCommentText()
Return the first comment string.java.lang.String[]
getLocTerms(boolean uniqueOnly)
Return each individual target-language term that corresponds to the source term.java.lang.String
getLocText()
Return the first target-language term string.java.lang.String[]
getOrigins(boolean uniqueOnly)
boolean[]
getPriorities()
boolean
getPriority()
java.lang.String
getSourceText()
Gets the source textjava.lang.String
getSrcText()
java.lang.String
getTranslationText()
Gets translation textint
hashCode()
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.omegat.core.data.ITranslationEntry
isTranslated
-
-
-
-
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()
-
getSourceText
public java.lang.String getSourceText()
Description copied from interface:ITranslationEntry
Gets the source text- Specified by:
getSourceText
in interfaceITranslationEntry
-
getTranslationText
public java.lang.String getTranslationText()
Description copied from interface:ITranslationEntry
Gets translation text- Specified by:
getTranslationText
in interfaceITranslationEntry
-
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 withgetLocTerms(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 withgetComments()
.- 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-