
public class I18NSync extends ToolBase
| Modifier and Type | Method and Description |
|---|---|
static void |
createConstantsInterfaceFromClassName(String className,
File outDir)
Creates a
Constants interface from a class name. |
static void |
createConstantsWithLookupInterfaceFromClassName(String className)
Creates a
ConstantsWithLookup interface from a class name. |
static void |
createConstantsWithLookupInterfaceFromClassName(String className,
File sourceDir)
Creates a
ConstantsWithLookup interface from a class name. |
static void |
createInterfaceFromClassName(String className,
File sourceDir,
Class<? extends Localizable> interfaceType)
Creates one of a Messages, ConstantsWithLookup, or Constants subclass.
|
static void |
createMessagesInterfaceFromClassName(String className)
Creates a
Messages interface from a class name. |
static void |
createMessagesInterfaceFromClassName(String className,
File sourceDir)
Creates a
Messages interface from a class name. |
static void |
main(String[] args)
Creates Messages and Constants java source files.
|
protected boolean |
run()
Creates the interface.
|
checkJdkVersion, getDescription, getName, legacyWarn, printHelp, printHelp, processArgs, registerHandlerpublic static void createConstantsInterfaceFromClassName(String className, File outDir) throws IOException
Constants interface from a class name. The
resource file needed to create the class must be on your class path.className - the name of the Constants class to be createdoutDir - source dir rootIOExceptionpublic static void createConstantsWithLookupInterfaceFromClassName(String className) throws IOException
ConstantsWithLookup interface from a class name.
The resource file needed to create the class must be on your class path.className - the name of the Constants class to be createdIOExceptionpublic static void createConstantsWithLookupInterfaceFromClassName(String className, File sourceDir) throws IOException
ConstantsWithLookup interface from a class name.
The resource file needed to create the class must be on your class path.className - the name of the Constants class to be createdsourceDir - source dir rootIOExceptionpublic static void createInterfaceFromClassName(String className, File sourceDir, Class<? extends Localizable> interfaceType) throws IOException
className - Name of the subclass to be createdsourceDir - source directory rootinterfaceType - What kind of base class to useIOExceptionpublic static void createMessagesInterfaceFromClassName(String className) throws IOException
Messages interface from a class name. The resource
file needed to create the class must be on your class path.className - the name of the Constants class to be createdIOExceptionpublic static void createMessagesInterfaceFromClassName(String className, File sourceDir) throws IOException
Messages interface from a class name. The resource
file needed to create the class must be on your class path.className - the name of the Constants class to be createdsourceDir - source directory rootIOExceptionpublic static void main(String[] args)
args - arguments for generationprotected boolean run()
Copyright © 2018. All rights reserved.