/webccr/src/com/emis/caesar/emisNLS.java
https://bitbucket.org/sanliou/synccr · Java · 41 lines · 22 code · 10 blank · 9 comment · 3 complexity · dcfb4e34c48021f644291d8238589dac MD5 · raw file
- package com.emis.caesar;
- import java.util.HashMap;
- /*
- * There are two resource file relative to NLS
- *
- * one is classes/caesar_nls.properties
- * one is WEB-INF/caesar_nls_user.properties
- *
- * each locale should load from these two file as well
- *
- */
- public class emisNLS {
-
- static HashMap g_NLSInstance = new HashMap();
-
- public static synchronized emisNLS getLocale(String area) {
- area = area.toUpperCase();
- emisNLS nls = (emisNLS) g_NLSInstance.get(area);
- if( nls == null ) {
- nls = new emisNLS(area);
- g_NLSInstance.put(area, nls);
- }
- return nls;
- }
-
-
- HashMap nlsResource = new HashMap();
-
- private emisNLS(String area) {
-
- }
-
- public String getString( String idString ) {
- if (idString==null) return "";
- idString = idString.toUpperCase();
- return (String) nlsResource.get(idString);
- }
- }