Package com.yetanalytics.xapi.model
Class LangMap
- java.lang.Object
-
- com.yetanalytics.xapi.model.LangMap
-
public class LangMap extends Object
Java wrapper object for the xAPI Language Map object. The Language Map is a dictionary where the keys are RFC 5646 Language Tags and the value is a String in the language specified by the tag.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get(String languageCode)
Retrieve the value for a specific language.Set<String>
getLanguageCodes()
Retrieves the full set of RFC 5646 Language Tags contained in the MapMap<String,String>
getMap()
Retrieves the full Language Map in the form of a HashMap<String, String>void
put(String languageCode, String value)
Sets an entry in the Language Mapvoid
remove(String languageCode)
Remove an Entry from the Language Map
-
-
-
Method Detail
-
put
public void put(String languageCode, String value)
Sets an entry in the Language Map- Parameters:
languageCode
- the RFC 5646 Language Tag of the specified Languagevalue
- a string in the language specified by languageCode
-
get
public String get(String languageCode)
Retrieve the value for a specific language.- Parameters:
languageCode
- RFC 5646 Language Tag- Returns:
- The value in the language specified by the tag.
-
remove
public void remove(String languageCode)
Remove an Entry from the Language Map- Parameters:
languageCode
- RFC 5646 Language Tag
-
getLanguageCodes
public Set<String> getLanguageCodes()
Retrieves the full set of RFC 5646 Language Tags contained in the Map- Returns:
- A set RFC 5646 Language Tag Strings
-
-