Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.application.timewarp.source
Class ScopeText  view ScopeText download ScopeText.java

java.lang.Object
  extended byorg.scopemvc.application.timewarp.source.ScopeText
All Implemented Interfaces:
FileProducer

public class ScopeText
extends java.lang.Object
implements FileProducer

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:
getDestinationDir in interface FileProducer

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:
getDestinationFileName in interface FileProducer

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:
getTemplate in interface FileProducer

isEnabled

public boolean isEnabled()
Return true if this file producer is enabled and can generate code

Specified by:
isEnabled in interface FileProducer

setEnabled

public void setEnabled(boolean value)
Sets the enabled

Specified by:
setEnabled in interface FileProducer

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:
createVelocityContext in interface FileProducer