|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.javadocbuilder.BaseTemplate
Base class for ITemplate
implementations.
By default, all templates extending this class are forever cacheable.
the isDirty()
function must be overwritten for controlling this behaviour.
ITemplateSource
Field Summary | |
protected java.lang.String |
buffer
|
protected java.lang.String |
id
|
protected java.lang.String |
name
|
protected java.lang.String |
outputPattern
|
Constructor Summary | |
BaseTemplate()
|
Method Summary | |
java.lang.String |
getBuffer()
Gets the buffer with the contents of the template. |
java.lang.String |
getId()
Gets a string that uniquely identifies the template within a source |
java.lang.String |
getName()
Gets the name of the template. |
java.lang.String |
getOutputPattern()
Gets the template desired/suggested output pattern. |
boolean |
isDirty()
Cache related function to control cache usage. |
void |
setBuffer(java.lang.String buffer)
|
void |
setId(java.lang.String id)
|
void |
setName(java.lang.String name)
Sets the name of the template |
void |
setOutputPattern(java.lang.String outputPattern)
Sets the output pattern of the template |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected java.lang.String outputPattern
protected java.lang.String buffer
protected java.lang.String id
Constructor Detail |
public BaseTemplate()
Method Detail |
public java.lang.String getName()
ITemplate
getName
in interface ITemplate
String
with the name of the templatepublic java.lang.String getOutputPattern()
ITemplate
getOutputPattern
in interface ITemplate
String
.public void setName(java.lang.String name)
name
- The name to set.public void setOutputPattern(java.lang.String outputPattern)
outputPattern
- The outputPattern to set.public java.lang.String getBuffer()
ITemplate
getBuffer
in interface ITemplate
public void setBuffer(java.lang.String buffer)
buffer
- The buffer to set.public boolean isDirty()
ITemplate
isDirty
in interface ITemplate
public java.lang.String getId()
ITemplate
getId
in interface ITemplate
public void setId(java.lang.String id)
id
- The id to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |