public interface IThingNameInfo extends IThingNameView
getName(java.lang.String)
and getDescription(java.lang.String)
return the name/desc in the current language,
or in the default language getThingLang()
if an entry in the current language is not foundIThing
,
IThingNameView
Modifier and Type | Interface and Description |
---|---|
static interface |
IThingNameInfo.INameAtom
return structure for getNames
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAllLanguages()
Returns a collection of all languages that name/description
exist for this thing
|
String |
getDescription(String lang)
gets description for default language
|
String |
getName(String lang)
Gets the name in the default language
|
Collection<IThingNameInfo.INameAtom> |
getNames()
get a list of all names as name atoms
|
String |
getThingLang() |
void |
putNameDesc(String name,
String desc,
String strISOLanguage)
put the name & desc for a given lang in the cache
|
void |
setDescription(String desc)
sets description in default language
|
void |
setDescription(String desc,
String strISOLanguage)
sets description in specified language
|
void |
setName(String name)
sets the name in the default language
|
void |
setName(String name,
String strISOLanguage)
sets name in specified language
|
void |
setNameDesc(String name,
String desc,
String strISOLanguage)
set the name/desc in the DB for a given lang
It's more effiecient to call these together
|
getDescription, getName
String getThingLang() throws MetaException
MetaException
String getName(String lang) throws MetaException
MetaException
- if thing doesn't exist or DB errorvoid setName(String name) throws MetaException
name
- 256 char maxMetaException
- if thing doesn't exist or DB errorvoid setName(String name, String strISOLanguage) throws MetaException
name
- 256 char maxstrISOLanguage
- language codeMetaException
- if thing doesn't exist or DB errorString getDescription(String lang) throws MetaException
MetaException
- if thing doesn't exist or DB errorvoid setDescription(String desc) throws MetaException
desc
- 256 char maxMetaException
- if thing doesn't exist or DB errorvoid setDescription(String desc, String strISOLanguage) throws MetaException
desc
- 256 char maxstrISOLanguage
- language codeMetaException
- if thing doesn't exist or DB errorvoid putNameDesc(String name, String desc, String strISOLanguage)
strISOLanguage
- null==default langvoid setNameDesc(String name, String desc, String strISOLanguage) throws MetaException
strISOLanguage
- null==default langMetaException
Collection<IThingNameInfo.INameAtom> getNames() throws MetaException
MetaException
Collection<String> getAllLanguages() throws MetaException
MetaException