Package org.omegat.gui.glossary
Class GlossaryEntry
java.lang.Object
org.omegat.gui.glossary.GlossaryEntry
- All Implemented Interfaces:
ITranslationEntry
An entry in the glossary.
-
Constructor Summary
ConstructorsConstructorDescriptionGlossaryEntry(String src, String[] loc, String[] com, boolean[] fromPriorityGlossary, String[] origins) GlossaryEntry(String src, String loc, String com, boolean fromPriorityGlossary, @Nullable String origin) -
Method Summary
Modifier and TypeMethodDescriptionbooleanString[]Return the first comment string.String[]getLocTerms(boolean uniqueOnly) Return each individual target-language term that corresponds to the source term.Return the first target-language term string.String[]getOrigins(boolean uniqueOnly) boolean[]booleanGets the source textGets translation textinthashCode()Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omegat.core.data.ITranslationEntry
isTranslated
-
Constructor Details
-
GlossaryEntry
-
GlossaryEntry
-
-
Method Details
-
getSrcText
-
getSourceText
Description copied from interface:ITranslationEntryGets the source text- Specified by:
getSourceTextin interfaceITranslationEntry
-
getTranslationText
Description copied from interface:ITranslationEntryGets translation text- Specified by:
getTranslationTextin interfaceITranslationEntry
-
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
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
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
-
getPriority
public boolean getPriority() -
getPriorities
public boolean[] getPriorities() -
getOrigins
-
equals
-
hashCode
public int hashCode()
-