|
||||||||||
| 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.JavaSources
public class JavaSources
Manages Java source code.
Use cases
manageSources(java.io.File)manageSources(org.jomc.model.Module, java.io.File)manageSources(org.jomc.model.Specification, java.io.File)manageSources(org.jomc.model.Implementation, java.io.File)
JomcTool.getModules()| Nested Class Summary | |
|---|---|
class |
JavaSources.JavaEditor
Extension to SectionEditor for editing Java source code. |
class |
JavaSources.JavaImplementationEditor
Extension to JavaEditor for editing implementation source code. |
class |
JavaSources.JavaSpecificationEditor
Extension to JavaEditor for editing specification source code. |
| Nested classes/interfaces inherited from class org.jomc.tools.JomcTool |
|---|
JomcTool.Listener |
| Constructor Summary | |
|---|---|
JavaSources()
Creates a new JavaSources instance. |
|
JavaSources(JavaSources tool)
Creates a new JavaSources instance taking a JavaSources instance to initialize the instance with. |
|
| Method Summary | |
|---|---|
JavaSources.JavaImplementationEditor |
getImplementationEditor(org.jomc.model.Implementation implementation)
Gets a new editor for editing Java implementation source code. |
JavaSources.JavaSpecificationEditor |
getSpecificationEditor(org.jomc.model.Specification specification)
Gets a new editor for editing Java specification source code. |
org.apache.velocity.VelocityContext |
getVelocityContext()
Gets the velocity context used for merging templates. |
void |
manageSources(File sourcesDirectory)
Manages the source code of the modules of the instance. |
void |
manageSources(org.jomc.model.Implementation implementation,
File sourcesDirectory)
Manages the source code of a given implementation of the modules of the instance. |
void |
manageSources(org.jomc.model.Module module,
File sourcesDirectory)
Manages the source code of a given module of the modules of the instance. |
void |
manageSources(org.jomc.model.Specification specification,
File sourcesDirectory)
Manages the source code of a given specification of the modules of the instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaSources()
JavaSources instance.
public JavaSources(JavaSources tool)
JavaSources instance taking a JavaSources instance to initialize the instance with.
tool - The instance to initialize the new instance with,| Method Detail |
|---|
public void manageSources(File sourcesDirectory)
throws IOException
sourcesDirectory - The directory holding the sources to manage.
NullPointerException - if sourcesDirectory is null.
IOException - if managing sources fails.manageSources(org.jomc.model.Module, java.io.File)
public void manageSources(org.jomc.model.Module module,
File sourcesDirectory)
throws IOException
module - The module to process.sourcesDirectory - The directory holding the sources to manage.
NullPointerException - if module or sourcesDirectory is null.
IOException - if managing sources fails.manageSources(org.jomc.model.Specification, java.io.File),
manageSources(org.jomc.model.Implementation, java.io.File)
public void manageSources(org.jomc.model.Specification specification,
File sourcesDirectory)
throws IOException
specification - The specification to process.sourcesDirectory - The directory holding the sources to manage.
NullPointerException - if specification or sourcesDirectory is null.
IOException - if managing sources fails.getSpecificationEditor(org.jomc.model.Specification)
public void manageSources(org.jomc.model.Implementation implementation,
File sourcesDirectory)
throws IOException
implementation - The implementation to process.sourcesDirectory - The directory holding the sources to manage.
NullPointerException - if implementation or sourcesDirectory is null.
IOException - if managing sources fails.getImplementationEditor(org.jomc.model.Implementation)public JavaSources.JavaSpecificationEditor getSpecificationEditor(org.jomc.model.Specification specification)
specification - The specification to create a new editor for.
specification.
NullPointerException - if specification is null.public JavaSources.JavaImplementationEditor getImplementationEditor(org.jomc.model.Implementation implementation)
implementation - The implementation to create a new editor for.
implementation.
NullPointerException - if implementation is null.public org.apache.velocity.VelocityContext getVelocityContext()
getVelocityContext in class JomcTool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||