01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /* $Id: ExtendedLocalizable.java 447277 2006-09-18 06:19:34Z jeremias $ */
19:
20: package org.apache.xmlgraphics.util.i18n;
21:
22: import java.util.Locale;
23: import java.util.ResourceBundle;
24:
25: /**
26: * This interface provides much more control over internationalization
27: * than the Localizable interface.
28: *
29: * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
30: * @version $Id: ExtendedLocalizable.java 447277 2006-09-18 06:19:34Z jeremias $
31: */
32: public interface ExtendedLocalizable extends Localizable {
33: /**
34: * Sets the group to which this object belongs.
35: */
36: void setLocaleGroup(LocaleGroup lg);
37:
38: /**
39: * Returns the group to which this object belongs.
40: */
41: LocaleGroup getLocaleGroup();
42:
43: /**
44: * Sets the default locale for all the instances of this class in
45: * the same LocaleGroup.
46: */
47: void setDefaultLocale(Locale l);
48:
49: /**
50: * Gets the current default locale in the LocaleGroup.
51: */
52: Locale getDefaultLocale();
53:
54: /**
55: * Returns the current resource bundle. Getting this object gives access
56: * to the keys in the bundle, raw string resources, arrays of raw string
57: * resources and object resources.
58: */
59: ResourceBundle getResourceBundle();
60: }
|