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 booleanequals(java.lang.Object o)java.lang.String[]getComments()java.lang.StringgetCommentText()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.StringgetLocText()Return the first target-language term string.java.lang.String[]getOrigins(boolean uniqueOnly)boolean[]getPriorities()booleangetPriority()java.lang.StringgetSourceText()Gets the source textjava.lang.StringgetSrcText()java.lang.StringgetTranslationText()Gets translation textinthashCode()-
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:ITranslationEntryGets the source text- Specified by:
getSourceTextin interfaceITranslationEntry
-
getTranslationText
public java.lang.String getTranslationText()
Description copied from interface:ITranslationEntryGets translation text- Specified by:
getTranslationTextin 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-