|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to template object. Constructor loads template source and parses out config data into a PropertySet.
| Field Summary | |
static java.lang.String |
CN
|
static java.lang.String |
MN_setCodeWriter
|
| Method Summary | |
TemplatePath[] |
getAlsoGenerate()
Get list of templates to which should also be generated. |
BuildResource |
getBuildResource()
Get the set of build resources for this template |
boolean |
getCodeWriterChanged()
|
java.io.File |
getCodeWriterExecutablePath()
|
java.lang.String |
getCodeWriterLang()
Get code writer lang if defined, else return empty String. |
java.io.File |
getCodeWriterPath()
|
java.lang.String |
getCodeWriterSource()
|
java.lang.Object |
getContext()
Get context object for internal code writers. |
long |
getLastMod()
Get last modified date of template source file |
PropertySet |
getMergedPropertySet()
|
java.io.File |
getMetaFile()
|
PropertySet |
getPropertySet(java.lang.String pConfName)
Get template PropertySet. |
java.lang.Object |
getResult()
Get result object from CodeWriter (may be null). |
java.util.List |
getSavedFiles()
|
SectionSet |
getSectionSet()
Get the data cotnainer for the insert section text of this template. |
java.lang.String |
getSource()
Get template source. |
TemplatePath |
getTemplatePath()
Get the TemplatePath to this template |
boolean |
hasMetaFile()
|
void |
load(TemplatePath pTemplatePath)
Load template and parse for PropertySet. |
void |
modifyForOldVersion()
|
void |
setCodeWriterChanged(boolean pChanged)
|
void |
setCodeWriterExecutablePath(java.io.File pCodeWriterExecutablePath)
|
void |
setCodeWriterPath(java.io.File pCodeWriterPath)
Set the code writer when known |
void |
setCodeWriterSource(java.lang.String pCodeWriterSource)
|
void |
setContext(java.lang.Object pContext)
Set context object for internal code writers. |
void |
setMetaFile(java.io.File pMetaFile)
|
void |
setPropertySet(java.lang.String pConfName,
PropertySet pPropertySet)
|
void |
setResult(java.lang.Object pResult)
Set result object from CodeWriter (optional). |
void |
setSavedFiles(java.util.List pSavedFiles)
|
void |
setSectionSet(SectionSet pSectionSet)
Set the data container for the insert section text of this template. |
void |
setSource(java.lang.String pSource)
Set template source and parse for PropertySet. |
java.lang.String |
toString()
Provide a user-friendly description of the template. |
java.lang.String |
traceProperty(java.lang.String pName)
|
| Field Detail |
public static final java.lang.String CN
public static final java.lang.String MN_setCodeWriter
| Method Detail |
public void setSectionSet(SectionSet pSectionSet)
pSectionSet - container for section textpublic SectionSet getSectionSet()
public void load(TemplatePath pTemplatePath)
pTemplatePath - Path to load template from.public TemplatePath getTemplatePath()
public void setContext(java.lang.Object pContext)
pContext - context objectpublic java.lang.Object getContext()
public void setResult(java.lang.Object pResult)
public java.lang.Object getResult()
public void setSource(java.lang.String pSource)
public java.lang.String getSource()
public PropertySet getPropertySet(java.lang.String pConfName)
public void setPropertySet(java.lang.String pConfName,
PropertySet pPropertySet)
public PropertySet getMergedPropertySet()
public java.lang.String traceProperty(java.lang.String pName)
public TemplatePath[] getAlsoGenerate()
public java.lang.String getCodeWriterLang()
public long getLastMod()
public BuildResource getBuildResource()
public void setCodeWriterPath(java.io.File pCodeWriterPath)
public java.io.File getCodeWriterPath()
public void setCodeWriterSource(java.lang.String pCodeWriterSource)
public java.lang.String getCodeWriterSource()
public void setCodeWriterChanged(boolean pChanged)
public boolean getCodeWriterChanged()
public void setCodeWriterExecutablePath(java.io.File pCodeWriterExecutablePath)
public java.io.File getCodeWriterExecutablePath()
public void setSavedFiles(java.util.List pSavedFiles)
public java.util.List getSavedFiles()
public void setMetaFile(java.io.File pMetaFile)
public java.io.File getMetaFile()
public boolean hasMetaFile()
public void modifyForOldVersion()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||