KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > google > gwt > i18n > rebind > util > ConstantsInterfaceCreator


1 /*
2  * Copyright 2006 Google Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy of
6  * the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 java.io.File JavaDoc;
19 import java.io.IOException JavaDoc;
20
21 /**
22  * Constants Interface creator.
23  */

24 public class ConstantsInterfaceCreator extends
25     AbstractLocalizableInterfaceCreator {
26
27   /**
28    * Creates a new constants creator.
29    *
30    * @param className constant class to create
31    * @param packageName package to create it in
32    * @param resourceBundle resource bundle with value
33    * @param targetLocation
34    * @throws IOException
35    */

36   public ConstantsInterfaceCreator(String JavaDoc className, String JavaDoc packageName,
37       File JavaDoc resourceBundle, File JavaDoc targetLocation, Class JavaDoc interfaceClass)
38       throws IOException JavaDoc {
39     super(className, packageName, resourceBundle, targetLocation,
40       interfaceClass);
41   }
42
43   protected void genMethodArgs(String JavaDoc defaultValue) {
44     // no arguments
45
}
46
47   protected String JavaDoc javaDocComment(String JavaDoc path) {
48     return "Interface to represent the constants contained in resource bundle:\n\t'"
49       + path + "'.";
50   }
51 }
52
Popular Tags