redora.generator
Class Template

java.lang.Object
  extended by redora.generator.Template

public class Template
extends Object

Archetype Template without content. Gives hints to the ModelProcessor what to do with this template. See also templates.xsd.

Author:
Nanjing RedOrange (http://www.red-orange.cn)

Nested Class Summary
static class Template.Destination
           
static class Template.DestinationType
          File type of the destination.
static class Template.Input
          Data input for the template.
static class Template.Type
           
 
Field Summary
 Template.Destination destination
           
 Template.DestinationType destinationType
           
 String ignoreProjects
           
 Template.Input input
           
 String name
           
 String packageSuffix
           
 String path
           
 Template.Type type
           
 
Constructor Summary
Template(String name, Template.Type type, Template.Destination destination, String templatesDir)
           
 
Method Summary
 String getAbsolutePath()
           
 String getDestinationFileName(String objectName, String language, String classAttribute)
           
 String getTemplateFileName()
           
 void setDestinationType(Template.DestinationType destinationType)
           
 void setIgnoreProjects(String ignoreProjects)
           
 void setInput(Template.Input input)
           
 void setPackageSuffix(String packageSuffix)
           
 void setPath(String path)
           
 void setTemplateFileName(String templateFileName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name

type

public final Template.Type type

destination

public final Template.Destination destination

packageSuffix

public String packageSuffix

path

public String path

destinationType

public Template.DestinationType destinationType

input

public Template.Input input

ignoreProjects

public String ignoreProjects
Constructor Detail

Template

public Template(@NotNull
                String name,
                @NotNull
                Template.Type type,
                @NotNull
                Template.Destination destination,
                @NotNull
                String templatesDir)
Method Detail

setPackageSuffix

public void setPackageSuffix(String packageSuffix)

setPath

public void setPath(String path)

setIgnoreProjects

public void setIgnoreProjects(String ignoreProjects)

setDestinationType

public void setDestinationType(Template.DestinationType destinationType)

setInput

public void setInput(Template.Input input)

setTemplateFileName

public void setTemplateFileName(String templateFileName)

getDestinationFileName

public String getDestinationFileName(String objectName,
                                     String language,
                                     String classAttribute)

getAbsolutePath

public String getAbsolutePath()

getTemplateFileName

@NotNull
public String getTemplateFileName()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Nanjing RedOrange Co. ltd. All Rights Reserved.