Package net.sf.okapi.lib.terminology
Class ConceptEntry
- java.lang.Object
-
- net.sf.okapi.lib.terminology.BaseEntry
-
- net.sf.okapi.lib.terminology.ConceptEntry
-
public class ConceptEntry extends BaseEntry
-
-
Constructor Summary
Constructors Constructor Description ConceptEntry()Creates a new ConceptEntry object.ConceptEntry(String source, String target, LocaleId srcLocale, LocaleId trgLocale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLangEntry(LangEntry lent)voidaddTerm(LocaleId locId, String term)LangEntrygetEntries(LocaleId locId)StringgetId()Gets the ID for this glossary entry.booleanhasLocale(LocaleId locId)Indicates if there is a set of terms defined for a given locale.voidremoveEntries(LocaleId locId)voidsetId(String id)Sets the ID for this glossary entry.-
Methods inherited from class net.sf.okapi.lib.terminology.BaseEntry
getProperty, propertiesKeys, setProperties, setProperty
-
-
-
-
Method Detail
-
getId
public String getId()
Gets the ID for this glossary entry.- Returns:
- the ID for this glossary entry.
-
setId
public void setId(String id)
Sets the ID for this glossary entry.- Parameters:
id- the ID for this glossary entry.
-
hasLocale
public boolean hasLocale(LocaleId locId)
Indicates if there is a set of terms defined for a given locale.- Parameters:
locId- the locale to query.- Returns:
- true if there is a set of terms defined for the given locale.
-
addLangEntry
public void addLangEntry(LangEntry lent)
-
removeEntries
public void removeEntries(LocaleId locId)
-
-