01: /*
02: * Copyright 2007 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations under
14: * the License.
15: */
16: package com.google.gwt.i18n.rebind.util;
17:
18: import com.google.gwt.i18n.client.Constants;
19:
20: import java.io.File;
21: import java.io.IOException;
22:
23: /**
24: * Constants Interface creator.
25: */
26: public class ConstantsInterfaceCreator extends
27: AbstractLocalizableInterfaceCreator {
28:
29: /**
30: * Creates a new constants creator.
31: *
32: * @param className constant class to create
33: * @param packageName package to create it in
34: * @param resourceBundle resource bundle with value
35: * @param targetLocation
36: * @throws IOException
37: */
38: public ConstantsInterfaceCreator(String className,
39: String packageName, File resourceBundle,
40: File targetLocation,
41: Class<? extends Constants> interfaceClass)
42: throws IOException {
43: super (className, packageName, resourceBundle, targetLocation,
44: interfaceClass);
45: }
46:
47: @Override
48: protected void genMethodArgs(String defaultValue) {
49: // no arguments
50: }
51:
52: @Override
53: protected String javaDocComment(String path) {
54: return "Interface to represent the constants contained in resource bundle:\n\t'"
55: + path + "'.";
56: }
57: }
|