2006/unicorn/src/org/w3/unicorn/language LanguageFactory.java,NONE,1.1.2.1 LanguageNegociator.java,NONE,1.1.2.1 Language.java,NONE,1.1.2.1

Update of /sources/public/2006/unicorn/src/org/w3/unicorn/language
In directory hutz:/tmp/cvs-serv13417/src/org/w3/unicorn/language

Added Files:
      Tag: dev2
	LanguageFactory.java LanguageNegociator.java Language.java 
Log Message:
modified xmlbean ant task
+changed package name from w3c to w3

--- NEW FILE: Language.java ---
package org.w3.unicorn.language;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

public class Language {

	public Language() {
		
	}
	
	public static boolean isLocale(String string) {
		Locale[] locales = Locale.getAvailableLocales();
		for (Locale loc : locales) {
			if (loc.getDisplayLanguage().equals(string))
				return true;
		}
		return false;
	}

	public static Locale getLocale(HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}
	
}

--- NEW FILE: LanguageNegociator.java ---
package org.w3.unicorn.language;

import java.util.Enumeration;

public class LanguageNegociator {

	public static String negociate(Enumeration locales) {
		// TODO Auto-generated method stub
		return "en";
	}

}

--- NEW FILE: LanguageFactory.java ---
package org.w3.unicorn.language;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

public class LanguageFactory {

	public static Locale getLocale(HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

}

Received on Wednesday, 5 August 2009 17:21:58 UTC