01: // QLocale.java
02: // $Id: QLocale.java,v 1.3 2000/08/16 21:37:45 ylafon Exp $
03: // (c) COPYRIGHT MIT, INRIA and Keio, 1999.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05: package org.w3c.jigsaw.servlet;
06:
07: import java.util.Locale;
08:
09: /**
10: * @version $Revision: 1.3 $
11: * @author Benoît Mahé (bmahe@w3.org)
12: */
13: public class QLocale {
14:
15: protected double quality;
16: protected Locale locale;
17:
18: public double getLanguageQuality() {
19: return quality;
20: }
21:
22: public Locale getLocale() {
23: return locale;
24: }
25:
26: /**
27: * Construct a locale from language, country and quality.
28: */
29: public QLocale(String language, String country, double quality) {
30: this .locale = new Locale(language, country);
31: this.quality = quality;
32: }
33:
34: }
|