|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.topcased.modeler.extensions.Template
public class Template
Template created from a file.
creation : 6 sept. 2004
Constructor Summary | |
---|---|
Template(java.io.File src)
Constructor |
Method Summary | |
---|---|
protected boolean |
_checkTemplate()
|
void |
addVariable(java.lang.String key,
java.lang.String value)
Set the value of a parameter |
org.eclipse.core.resources.IResource |
generate(org.eclipse.core.runtime.IProgressMonitor monitor)
Generates files as part of the template execution. |
java.lang.String |
getProcessedString(java.lang.String source)
Process the given String through the parameter map |
void |
setDestination(org.eclipse.core.resources.IContainer container)
Set the destination directory of the template |
void |
setVariables(java.util.Map variables)
Set the list of parameters and its values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Template(java.io.File src)
src
- the template source fileMethod Detail |
---|
public void setDestination(org.eclipse.core.resources.IContainer container)
container
- the destination containerpublic void setVariables(java.util.Map variables)
variables
- the map of parameters (key="Parameter name String",
value="Parameter value String")public void addVariable(java.lang.String key, java.lang.String value)
key
- the parameter namevalue
- the parameter valueprotected boolean _checkTemplate()
public java.lang.String getProcessedString(java.lang.String source)
source
- the source String
public org.eclipse.core.resources.IResource generate(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
monitor
- progress monitor to use to indicate generation progress
org.eclipse.core.runtime.CoreException
|
Modelers | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.