|
|||||||||
| Home >> All >> org >> scopemvc >> application >> timewarp >> [ source overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.scopemvc.application.timewarp.source
Class ScopeText

java.lang.Objectorg.scopemvc.application.timewarp.source.ScopeText
- All Implemented Interfaces:
- FileProducer
- public class ScopeText
- extends java.lang.Object
- implements FileProducer
- extends java.lang.Object
Class for writing Scope text documents (html pages...).
- Version:
- 1.0
| Field Summary | |
private boolean |
enabled
|
private java.lang.String |
ext
|
private org.scopemvc.application.timewarp.CodeGeneratorModel |
model
|
private java.lang.String |
name
|
private java.lang.String |
template
|
| Constructor Summary | |
ScopeText(org.scopemvc.application.timewarp.CodeGeneratorModel model,
java.lang.String name,
java.lang.String ext,
java.lang.String template)
Constructor for the ScopeSource object |
|
| Method Summary | |
org.apache.velocity.VelocityContext |
createVelocityContext()
Returns a VelocityContext object which will be used for file generation. |
java.io.File |
getDestinationDir()
Gets the DestinationDir attribute of the FileProducer object |
java.lang.String |
getDestinationFileName()
Gets the destination file name |
java.lang.String |
getExtention()
Gets the extention |
java.lang.String |
getName()
Gets the name |
java.lang.String |
getPackage()
Gets the package |
java.net.URL |
getTemplate()
Gets the Template attribute of the FileProducer object |
boolean |
isEnabled()
Return true if this file producer is enabled and can generate code |
void |
setEnabled(boolean value)
Sets the enabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
model
private org.scopemvc.application.timewarp.CodeGeneratorModel model
enabled
private boolean enabled
template
private java.lang.String template
name
private java.lang.String name
ext
private java.lang.String ext
| Constructor Detail |
ScopeText
public ScopeText(org.scopemvc.application.timewarp.CodeGeneratorModel model, java.lang.String name, java.lang.String ext, java.lang.String template)
- Constructor for the ScopeSource object
| Method Detail |
getDestinationDir
public java.io.File getDestinationDir()
- Gets the DestinationDir attribute of the FileProducer object
- Specified by:
getDestinationDirin interfaceFileProducer
getName
public java.lang.String getName()
- Gets the name
getExtention
public java.lang.String getExtention()
- Gets the extention
getDestinationFileName
public java.lang.String getDestinationFileName()
- Gets the destination file name
- Specified by:
getDestinationFileNamein interfaceFileProducer
getPackage
public java.lang.String getPackage()
- Gets the package
getTemplate
public java.net.URL getTemplate()
- Gets the Template attribute of the FileProducer object
- Specified by:
getTemplatein interfaceFileProducer
isEnabled
public boolean isEnabled()
- Return true if this file producer is enabled and can generate code
- Specified by:
isEnabledin interfaceFileProducer
setEnabled
public void setEnabled(boolean value)
- Sets the enabled
- Specified by:
setEnabledin interfaceFileProducer
createVelocityContext
public org.apache.velocity.VelocityContext createVelocityContext()
- Returns a VelocityContext object which will be used for file generation.
This object can contain objects that are bound to names and can be
accessed from the template.
- Specified by:
createVelocityContextin interfaceFileProducer
|
|||||||||
| Home >> All >> org >> scopemvc >> application >> timewarp >> [ source overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.scopemvc.application.timewarp.source.ScopeText