com.google.gwt.i18n.tools
Class I18NSync

java.lang.Object
  extended by ToolBase
      extended by com.google.gwt.i18n.tools.I18NSync

public class I18NSync
extends ToolBase

Common public access point for localization support methods.


Field Summary
static java.lang.String ID
          Created Key.
 
Method Summary
static void createConstantsInterfaceFromClassName(java.lang.String className, java.io.File outDir)
          Creates a Constants interface from a class name.
static void createConstantsWithLookupInterfaceFromClassName(java.lang.String className)
          Creates a ConstantsWithLookup interface from a class name.
static void createConstantsWithLookupInterfaceFromClassName(java.lang.String className, java.io.File sourceDir)
          Creates a ConstantsWithLookup interface from a class name.
static void createInterfaceFromClassName(java.lang.String className, java.io.File sourceDir, java.lang.Class<? extends Localizable> interfaceType)
          Creates one of a Messages, ConstantsWithLookup, or Constants subclass.
static void createMessagesInterfaceFromClassName(java.lang.String className)
          Creates a Messages interface from a class name.
static void createMessagesInterfaceFromClassName(java.lang.String className, java.io.File sourceDir)
          Creates a Messages interface from a class name.
static void main(java.lang.String[] args)
          Creates Messages and Constants java source files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
Created Key.

See Also:
Constant Field Values
Method Detail

createConstantsInterfaceFromClassName

public static void createConstantsInterfaceFromClassName(java.lang.String className,
                                                         java.io.File outDir)
                                                  throws java.io.IOException
Creates a Constants interface from a class name. The resource file needed to create the class must be on your class path.

Parameters:
className - the name of the Constants class to be created
outDir - source dir root
Throws:
java.io.IOException

createConstantsWithLookupInterfaceFromClassName

public static void createConstantsWithLookupInterfaceFromClassName(java.lang.String className)
                                                            throws java.io.IOException
Creates a ConstantsWithLookup interface from a class name. The resource file needed to create the class must be on your class path.

Parameters:
className - the name of the Constants class to be created
Throws:
java.io.IOException

createConstantsWithLookupInterfaceFromClassName

public static void createConstantsWithLookupInterfaceFromClassName(java.lang.String className,
                                                                   java.io.File sourceDir)
                                                            throws java.io.IOException
Creates a ConstantsWithLookup interface from a class name. The resource file needed to create the class must be on your class path.

Parameters:
className - the name of the Constants class to be created
sourceDir - source dir root
Throws:
java.io.IOException

createInterfaceFromClassName

public static void createInterfaceFromClassName(java.lang.String className,
                                                java.io.File sourceDir,
                                                java.lang.Class<? extends Localizable> interfaceType)
                                         throws java.io.IOException
Creates one of a Messages, ConstantsWithLookup, or Constants subclass.

Parameters:
className - Name of the subclass to be created
sourceDir - source directory root
interfaceType - What kind of base class to use
Throws:
java.io.IOException

createMessagesInterfaceFromClassName

public static void createMessagesInterfaceFromClassName(java.lang.String className)
                                                 throws java.io.IOException
Creates a Messages interface from a class name. The resource file needed to create the class must be on your class path.

Parameters:
className - the name of the Constants class to be created
Throws:
java.io.IOException

createMessagesInterfaceFromClassName

public static void createMessagesInterfaceFromClassName(java.lang.String className,
                                                        java.io.File sourceDir)
                                                 throws java.io.IOException
Creates a Messages interface from a class name. The resource file needed to create the class must be on your class path.

Parameters:
className - the name of the Constants class to be created
sourceDir - source directory root
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
Creates Messages and Constants java source files.

Parameters:
args - arguments for generation