com.google.gwt.i18n.rebind
Class AbstractLocalizableInterfaceCreator

java.lang.Object
  extended by com.google.gwt.i18n.rebind.AbstractLocalizableInterfaceCreator
Direct Known Subclasses:
ConstantsInterfaceCreator, MessagesInterfaceCreator

public abstract class AbstractLocalizableInterfaceCreator
extends java.lang.Object

Abstract base functionality for MessagesInterfaceCreator and ConstantsInterfaceCreator.


Constructor Summary
AbstractLocalizableInterfaceCreator(java.lang.String className, java.lang.String packageName, java.io.File resourceBundle, java.io.File targetLocation, java.lang.Class<? extends Localizable> interfaceClass)
          Creates a new constants creator.
 
Method Summary
 void generate()
          Generate class.
 void genSimpleMethodDecl(java.lang.String key, java.lang.String defaultValue)
          Create a String method declaration from a Dictionary/value pair.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLocalizableInterfaceCreator

public AbstractLocalizableInterfaceCreator(java.lang.String className,
                                           java.lang.String packageName,
                                           java.io.File resourceBundle,
                                           java.io.File targetLocation,
                                           java.lang.Class<? extends Localizable> interfaceClass)
                                    throws java.io.IOException
Creates a new constants creator.

Parameters:
className - constant class to create
packageName - package to create it in
resourceBundle - resource bundle with value
targetLocation -
Throws:
java.io.IOException
Method Detail

generate

public void generate()
              throws java.io.FileNotFoundException,
                     java.io.IOException
Generate class.

Throws:
java.io.FileNotFoundException
java.io.IOException

genSimpleMethodDecl

public void genSimpleMethodDecl(java.lang.String key,
                                java.lang.String defaultValue)
Create a String method declaration from a Dictionary/value pair.

Parameters:
key - Dictionary
defaultValue - default value