2006/unicorn/src/org/w3c/unicorn/util MessageList.java,1.2,1.3

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv29532/src/org/w3c/unicorn/util

Modified Files:
	MessageList.java 
Log Message:
replaced the language String parameter by a ULocale object

Index: MessageList.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/MessageList.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- MessageList.java	7 Oct 2009 12:50:16 -0000	1.2
+++ MessageList.java	20 Mar 2010 16:57:24 -0000	1.3
@@ -2,14 +2,16 @@
 
 import java.util.ArrayList;
 
+import com.ibm.icu.util.ULocale;
+
 public class MessageList extends ArrayList<Message> {
 
 	private static final long serialVersionUID = -720345110444544838L;
 	
-	private String lang;
+	private ULocale locale;
 
 	public MessageList() {
-		this.lang = Property.get("DEFAULT_LANGUAGE");
+		this.locale = Language.getDefaultLocale();
 	}
 	
 	public boolean hasInfo() {
@@ -33,16 +35,16 @@
 		return false;
 	}
 	
-	public MessageList(String lang) {
-		this.lang = lang;
+	public MessageList(ULocale lang) {
+		this.locale = lang;
 	}
 
-	public String getLang() {
-		return lang;
+	public ULocale getLocale() {
+		return locale;
 	}
 
-	public void setLang(String lang) {
-		this.lang = lang;
+	public void setLocale(ULocale locale) {
+		this.locale = locale;
 	}
 
 }

Received on Saturday, 20 March 2010 16:57:28 UTC