redora.generator
Class Template
java.lang.Object
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)
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
Template
public Template(@NotNull
String name,
@NotNull
Template.Type type,
@NotNull
Template.Destination destination,
@NotNull
String templatesDir)
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.