public class TermEntry
extends org.termweb.api.data.entry.BaseEntry
| Parameter | Type | Value |
|---|---|---|
| __objtype | String |
'TermEntry' |
| id | String |
TermEntry ID (internal use) |
| name | String |
Term name |
| termID | String |
Term ID value (visible in GUI) |
| toBeDeleted | Boolean |
Set to true if this term should be deleted from the concept |
| conceptEntryID | String |
ID of the concept to which the Term belongs |
| dictionaryID | String |
ID of the dictionary to which the Term belongs |
| language | String |
Iso3 language code for the term |
| region | String |
Code for the term's region |
| script | String |
Code for the term's script |
| fields | Struct [String->String] |
Map of field names to field values (term level fields) |
Example:
{
"__objtype": "TermEntry",
"id": "437",
"name": "fish",
"termID": "80-2",
"toBeDeleted": false,
"conceptEntryID": "436",
"dictionaryID": "312",
"language": "eng",
"fields": {
"Process status": "finalized"
}
}
| Modifier and Type | Field and Description |
|---|---|
static String |
LANGUAGE |
static String |
TERM_ID |
| Constructor and Description |
|---|
TermEntry()
Creates a new term entry.
|
TermEntry(TermWebID id)
Creates a new term entry with specified ID.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
TermWebID |
getConceptEntryID()
Returns the ID of the concept entry to which this term belongs.
|
String |
getLanguage()
Returns the language code for the entry.
|
String |
getRegion()
Gets the region value for the term.
|
String |
getScript()
Gets the script for the term.
|
TermWebID |
getSourceTermID() |
String |
getTermID()
Returns the termID for the entry.
|
boolean |
isIdentical(TermEntry term) |
boolean |
isToBeDeleted()
Checks if the term entry is marked for deletion.
|
void |
setConceptEntryID(TermWebID conceptEntryID)
Sets the ID of the concept entry to which this term belongs.
|
void |
setLanguage(String language)
Sets the language code for the entry.
|
void |
setRegion(String region)
Sets the region value for the term.
|
void |
setScript(String script)
Sets the script for the term.
|
void |
setSourceTermID(TermWebID sourceTermID) |
void |
setTermID(String termID)
Sets the termID for the entry.
|
void |
setToBeDeleted(boolean toBeDeleted)
Marks the term entry for deletion.
|
String |
toString() |
boolean |
validate(Map<String,String> errors)
Validates the object to ensure it contains necessary data to be possible to save in the database.
|
getAllFieldNames, getDictionaryID, getFieldValue, getFieldValueMap, setDictionaryID, setFieldValue, validateNamepublic static final String TERM_ID
"Term ID"public static final String LANGUAGE
"Language"public TermEntry()
public TermEntry(TermWebID id)
public String getTermID()
public void setTermID(String termID)
public String getLanguage()
public void setLanguage(String language)
public TermWebID getConceptEntryID()
public void setConceptEntryID(TermWebID conceptEntryID)
public boolean isToBeDeleted()
public void setToBeDeleted(boolean toBeDeleted)
toBeDeleted - True if it is to be deleted.public TermWebID getSourceTermID()
public void setSourceTermID(TermWebID sourceTermID)
public String getRegion()
public void setRegion(String region)
region - The region code.public String getScript()
public void setScript(String script)
script - The script code.public boolean validate(Map<String,String> errors)
validate in interface TermWebObjvalidate in class org.termweb.api.data.BaseTermWebObjerrors - A map of validation errors. May be null if cause of errors is not important.public boolean isIdentical(TermEntry term)
public boolean equals(Object o)
equals in class org.termweb.api.data.BaseTermWebObjpublic String toString()
toString in class org.termweb.api.data.BaseTermWebObjCopyright © 2009-2016 Interverbum Technology AB. All Rights Reserved.