
public class ResourceFileProcessor extends JomcTool
Use Cases:
JomcTool.getModules()JomcTool.Listener| Constructor and Description | 
|---|
ResourceFileProcessor()
Creates a new  
ResourceFileProcessor instance. | 
ResourceFileProcessor(ResourceFileProcessor tool)
Creates a new  
ResourceFileProcessor instance taking a ResourceFileProcessor instance to
 initialize the instance with. | 
| Modifier and Type | Method and Description | 
|---|---|
Locale | 
getResourceBundleDefaultLocale()
Gets the language of the default language properties file of generated resource bundle resource files. 
 | 
Map<Locale,Properties> | 
getResourceBundleResources(Implementation implementation)
Gets resource bundle properties resources of a given implementation. 
 | 
Map<Locale,Properties> | 
getResourceBundleResources(Specification specification)
Gets resource bundle properties resources of a given specification. 
 | 
void | 
setResourceBundleDefaultLocale(Locale value)
Sets the language of the default language properties file of generated resource bundle resource files. 
 | 
void | 
writeResourceBundleResourceFiles(File resourcesDirectory)
Writes resource bundle resource files of the modules of the instance to a given directory. 
 | 
void | 
writeResourceBundleResourceFiles(Implementation implementation,
                                                                File resourcesDirectory)
Writes resource bundle resource files of a given implementation from the modules of the instance to a directory. 
 | 
void | 
writeResourceBundleResourceFiles(Module module,
                                                                File resourcesDirectory)
Writes resource bundle resource files of a given module from the modules of the instance to a given directory. 
 | 
void | 
writeResourceBundleResourceFiles(Specification specification,
                                                                File resourcesDirectory)
Writes resource bundle resource files of a given specification from the modules of the instance to a directory. 
 | 
getBooleanString, getCsvString, getDefaultLogLevel, getDefaultTemplateEncoding, getDefaultTemplateProfile, getDisplayLanguage, getHtmlString, getImplementedJavaTypeNames, getIndentation, getIndentation, getInputEncoding, getIsoDate, getIsoDateTime, getIsoTime, getJavaClasspathLocation, getJavaClasspathLocation, getJavaClasspathLocation, getJavaConstantName, getJavadocComment, getJavadocComment, getJavaFieldName, getJavaFieldName, getJavaFieldName, getJavaFieldName, getJavaGetterMethodName, getJavaGetterMethodName, getJavaGetterMethodName, getJavaIdentifier, getJavaInterfaceNames, getJavaMethodParameterName, getJavaMethodParameterName, getJavaMethodParameterName, getJavaMethodParameterName, getJavaMethodParameterName, getJavaModifierName, getJavaModifierName, getJavaModifierName, getJavaPackageName, getJavaPackageName, getJavaPackageName, getJavaScriptString, getJavaSetterMethodName, getJavaSetterMethodName, getJavaSetterMethodName, getJavaString, getJavaTypeName, getJavaTypeName, getJavaTypeName, getJavaTypeName, getJavaTypeName, getJavaTypeName, getLineSeparator, getListeners, getLocale, getLogLevel, getLongDate, getLongDateTime, getLongTime, getMediumDate, getMediumDateTime, getMediumTime, getModel, getModules, getOutputEncoding, getParentTemplateProfile, getShortDate, getShortDateTime, getShortTime, getSqlString, getTemplateEncoding, getTemplateEncoding, getTemplateLocation, getTemplateParameters, getTemplateProfile, getVelocityContext, getVelocityEngine, getVelocityTemplate, getXmlString, getYears, isJavaDefaultPackage, isJavaDefaultPackage, isJavaPrimitiveType, isLoggable, log, setDefaultLogLevel, setDefaultTemplateEncoding, setDefaultTemplateProfile, setIndentation, setInputEncoding, setLineSeparator, setLocale, setLogLevel, setModel, setOutputEncoding, setTemplateEncoding, setTemplateLocation, setTemplateProfile, setVelocityEngine, toJavaConstantName, toJavaMethodName, toJavaVariableNamepublic ResourceFileProcessor()
ResourceFileProcessor instance.public ResourceFileProcessor(ResourceFileProcessor tool) throws IOException
ResourceFileProcessor instance taking a ResourceFileProcessor instance to
 initialize the instance with.tool - The instance to initialize the new instance with.NullPointerException - if tool is null.IOException - if copying tool fails.public final Locale getResourceBundleDefaultLocale()
setResourceBundleDefaultLocale(java.util.Locale)public final void setResourceBundleDefaultLocale(Locale value)
value - The language of the default language properties file of generated resource bundle resource files.getResourceBundleDefaultLocale()public void writeResourceBundleResourceFiles(File resourcesDirectory) throws IOException, ModelObjectException
resourcesDirectory - The directory to write resource bundle resource files to.NullPointerException - if resourcesDirectory is null.IOException - if writing resource bundle resource files fails.ModelObjectException - if compiling the name of a referenced type fails.writeResourceBundleResourceFiles(org.jomc.model.Module, java.io.File)public void writeResourceBundleResourceFiles(Module module, File resourcesDirectory) throws IOException, ModelObjectException
module - The module to process.resourcesDirectory - The directory to write resource bundle resource files to.NullPointerException - if module or resourcesDirectory is null.IOException - if writing resource bundle resource files fails.ModelObjectException - if compiling the name of a referenced type fails.writeResourceBundleResourceFiles(org.jomc.model.Specification, java.io.File), 
writeResourceBundleResourceFiles(org.jomc.model.Implementation, java.io.File)public void writeResourceBundleResourceFiles(Specification specification, File resourcesDirectory) throws IOException, ModelObjectException
specification - The specification to process.resourcesDirectory - The directory to write resource bundle resource files to.NullPointerException - if specification or resourcesDirectory is null.IOException - if writing resource bundle resource files fails.ModelObjectException - if compiling the name of the type referenced by the specification fails.getResourceBundleResources(org.jomc.model.Specification)public void writeResourceBundleResourceFiles(Implementation implementation, File resourcesDirectory) throws IOException, ModelObjectException
implementation - The implementation to process.resourcesDirectory - The directory to write resource bundle resource files to.NullPointerException - if implementation or resourcesDirectory is null.IOException - if writing resource bundle resource files fails.ModelObjectException - if compiling the name of the type referenced by the implementation fails.getResourceBundleResources(org.jomc.model.Implementation)public Map<Locale,Properties> getResourceBundleResources(Specification specification) throws IOException
specification - The specification to get resource bundle properties resources of.specification or null, if no model objects are
 found.NullPointerException - if specification is null.IOException - if getting the resource bundle properties resources fails.public Map<Locale,Properties> getResourceBundleResources(Implementation implementation) throws IOException
implementation - The implementation to get resource bundle properties resources of.implementation or null, if no model objects are
 found.NullPointerException - if implementation is null.IOException - if getting the resource bundle properties resources fails.Copyright © 2005–2014 The JOMC Project. All rights reserved.