public class BasicTemplate extends java.lang.Object implements ITemplate
ITemplate
interface.
Provides getters and setters of all properties.Constructor and Description |
---|
BasicTemplate() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Return the template description.
|
java.net.URL |
getIconURL()
Return the
URL of the template icon. |
java.lang.String |
getId()
Return the template ID.
|
java.lang.String |
getModelFileExtension()
Return the new model file extension.
|
java.lang.String |
getModelName()
Return the new model name.
|
java.lang.String |
getName()
Return the template name.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Obtains a map of additional properties defined in the template definition,
which are not interpreted by the New Wizard framework.
|
java.lang.Object |
getProperty(java.lang.String nameArg)
Obtains the value of an additional property defined in the template
definition, which is not interpreted by the New Wizard framework.
|
ITemplateModelHandler |
getTemplateModelHandler()
Return the
ITemplateModelHandler used to create models
from this template. |
void |
setDescription(java.lang.String description)
Set the template description.
|
void |
setIconURL(java.net.URL iconURL)
Set the
URL of the template icon. |
void |
setId(java.lang.String id)
Set the template ID.
|
void |
setModelFileExtension(java.lang.String modelFileExtension)
Set the new model file extension.
|
void |
setModelName(java.lang.String modelName)
Set the new model's name.
|
void |
setName(java.lang.String name)
Set the template name.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the value of an additional property defined in the template
definition, which is not interpreted by the New Wizard framework.
|
void |
setTemplateModelHandler(ITemplateModelHandler templateModelHandler)
Set the
ITemplateModelHandler used to create models
from this template. |
public java.lang.String getModelName()
ITemplate
getModelName
in interface ITemplate
public void setModelName(java.lang.String modelName)
modelName
- the new model's namepublic java.lang.String getDescription()
ITemplate
getDescription
in interface ITemplate
public void setDescription(java.lang.String description)
description
- the template descriptionpublic java.net.URL getIconURL()
ITemplate
URL
of the template icon.getIconURL
in interface ITemplate
URL
of the template iconpublic void setIconURL(java.net.URL iconURL)
URL
of the template icon.iconURL
- the URL
of the template iconpublic java.lang.String getId()
ITemplate
public void setId(java.lang.String id)
id
- the template IDpublic java.lang.String getName()
ITemplate
public void setName(java.lang.String name)
name
- the template namepublic ITemplateModelHandler getTemplateModelHandler()
ITemplate
ITemplateModelHandler
used to create models
from this template.getTemplateModelHandler
in interface ITemplate
ITemplateModelHandler
public void setTemplateModelHandler(ITemplateModelHandler templateModelHandler)
ITemplateModelHandler
used to create models
from this template.templateModelHandler
- the ITemplateModelHandler
public java.lang.String getModelFileExtension()
ITemplate
getModelFileExtension
in interface ITemplate
public void setModelFileExtension(java.lang.String modelFileExtension)
modelFileExtension
- the new model file extensionpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
public java.lang.Object getProperty(java.lang.String nameArg)
nameArg
- the property namenull
if the property
is not set or has a value of null
public void setProperty(java.lang.String name, java.lang.Object value)
name
- the property namevalue
- the corresponding value