Package org.eigenbase.resgen

## Class JavaLocaleGenerator

- java.lang.Object
- - org.eigenbase.resgen.AbstractGenerator
  - - org.eigenbase.resgen.AbstractJavaGenerator
    - - org.eigenbase.resgen.JavaLocaleGenerator

All Implemented Interfaces:
  `Generator`

    public class JavaLocaleGenerator
    extends AbstractJavaGenerator

Generates a Java class for a locale.

Since:
  19 September, 2005
Version:
  $Id: //open/util/resgen/src/org/eigenbase/resgen/JavaLocaleGenerator.java#2 $
Author:
  jhyde

### Field Summary

### Fields inherited from class org.eigenbase.resgen.AbstractJavaGenerator

`baseClassName, className, resourceBundle`

### Constructor Summary

Constructors
`JavaLocaleGenerator​(java.io.File srcFile, java.io.File file, java.lang.String className, ResourceDef.ResourceBundle resourceBundle, java.util.Locale locale, java.lang.String baseClassName)`

### Method Summary

All Methods Instance Methods Concrete Methods
`void` `generateModule​(ResourceGen generator, ResourceDef.ResourceBundle resourceList, java.io.PrintWriter pw)` Generates a class containing a line for each resource.
`void` `generateResource​(ResourceDef.Resource resource, java.io.PrintWriter pw)` Generates code for a particular resource.

### Methods inherited from class org.eigenbase.resgen.AbstractJavaGenerator

`generateFooter, generateHeader, getArgTypes, getBaseClassName, getClassName, getErrorClass, getPackageName`

### Methods inherited from class org.eigenbase.resgen.AbstractGenerator

`generateDoNotModifyHeader, generateGeneratedByBlock, getArgumentList, getFile, getParameterList, getSrcFileForComment, setScmSafeComments, useScmSafeComments`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Constructor Detail

#### JavaLocaleGenerator

    JavaLocaleGenerator​(java.io.File srcFile,
                        java.io.File file,
                        java.lang.String className,
                        ResourceDef.ResourceBundle resourceBundle,
                        java.util.Locale locale,
                        java.lang.String baseClassName)

### Method Detail

#### generateModule

    public void generateModule​(ResourceGen generator,
                               ResourceDef.ResourceBundle resourceList,
                               java.io.PrintWriter pw)

Description copied from interface: `Generator`
Generates a class containing a line for each resource.

#### generateResource

    public void generateResource​(ResourceDef.Resource resource,
                                 java.io.PrintWriter pw)

Description copied from class: `AbstractGenerator`
Generates code for a particular resource.

Specified by:
  `generateResource` in class `AbstractGenerator`