Package fr.formiko.usuel
Class g
java.lang.Object
fr.formiko.usuel.g
Get a translation class.
- Author:
 - Hydrolien
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleantest if key is in the HashMap.static StringGet methode without a replace value if it fail.static StringA get methode.static StringMain get methode with a replace value if it fail.static StringgetElementMap(String key)static StringGet methode with 1a char in uppercase.static StringGet methode with 1a char in uppercase.getMap()static StringA get methode.static void 
- 
Field Details
- 
map
Contain the Strings in the chosen language. 
 - 
 - 
Constructor Details
- 
g
public g() 
 - 
 - 
Method Details
- 
getMap
 - 
setMap
 - 
getElementMap
 - 
get
A get methode.
Difference with main get methode is that key = f+"."+x that's all.- Parameters:
 s- String return if key is not found.- Returns:
 - value that corresponds to key or s if there is no value fo key.
 
 - 
get
Main get methode with a replace value if it fail.
Null values are supported.- Parameters:
 key- Map key.sDefault- String return if key is not found.- Returns:
 - value that corresponds to key or s if there is no value fo key.
 
 - 
get
Get methode without a replace value if it fail.
the String return if key is not found will be key.- Parameters:
 key- Map key.- Returns:
 - value that corresponds to key or key if there is no value fo key.
 
 - 
getM
Get methode with 1a char in uppercase.
return String will have a 1a char in uppercase.
the String return if key is not found will be key.- Parameters:
 key- Map key.- Returns:
 - value that corresponds to key or s if there is no value fo key.
 
 - 
getM
Get methode with 1a char in uppercase.
return String will have a 1a char in uppercase.
the String return if key is not found will be key.- Parameters:
 key- Map key.sDefault- String return if key is not found.- Returns:
 - value that corresponds to key or s if there is no value fo key.
 
 - 
getOr
A get methode.
This get methode will return 1 or 2 value split by a / if get(key) & get(key2) do not return the same String.- Parameters:
 key- Map key1.key2- Map key2.- Returns:
 - value that corresponds to key and key2 or value1/value2 if that's not the same.
 
 - 
exist
test if key is in the HashMap.- Parameters:
 key- key to test.- Returns:
 - try if it exist.
 
 
 -