|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.tools.JomcTool
org.jomc.tools.ResourceFileProcessor
public class ResourceFileProcessor
Processes resource files.
Use Cases:
writeResourceBundleResourceFiles(File)
writeResourceBundleResourceFiles(Module, File)
writeResourceBundleResourceFiles(Specification, File)
writeResourceBundleResourceFiles(Implementation, File)
JomcTool.getModules()
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jomc.tools.JomcTool |
---|
JomcTool.Listener |
Constructor Summary | |
---|---|
ResourceFileProcessor()
Creates a new ResourceFileProcessor instance. |
|
ResourceFileProcessor(ResourceFileProcessor tool)
Creates a new ResourceFileProcessor instance taking a ResourceFileProcessor instance to
initialize the instance with. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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.Method Detail |
---|
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
resourcesDirectory
- The directory to write resource bundle resource files to.
NullPointerException
- if resourcesDirectory
is null
.
IOException
- if writing resource bundle resource files fails.writeResourceBundleResourceFiles(org.jomc.model.Module, java.io.File)
public void writeResourceBundleResourceFiles(Module module, File resourcesDirectory) throws IOException
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.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
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.getResourceBundleResources(org.jomc.model.Specification)
public void writeResourceBundleResourceFiles(Implementation implementation, File resourcesDirectory) throws IOException
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.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
.
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
.
NullPointerException
- if implementation
is null
.
IOException
- if getting the resource bundle properties resources fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |