public interface FileTemplate
extends java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_CALL_SUPER |
static java.lang.String |
ATTRIBUTE_CLASS_NAME |
static java.lang.String |
ATTRIBUTE_DEFAULT_RETURN_VALUE |
static java.lang.String |
ATTRIBUTE_DESCRIPTION |
static java.lang.String |
ATTRIBUTE_DIR_PATH
Relative path of containing directory
|
static java.lang.String |
ATTRIBUTE_DISPLAY_NAME |
static java.lang.String |
ATTRIBUTE_EXCEPTION |
static java.lang.String |
ATTRIBUTE_EXCEPTION_TYPE |
static java.lang.String |
ATTRIBUTE_EXPRESSION |
static java.lang.String |
ATTRIBUTE_EXPRESSION_TYPE |
static java.lang.String |
ATTRIBUTE_FILE_NAME
File name with extension
|
static java.lang.String |
ATTRIBUTE_METHOD_NAME |
static java.lang.String |
ATTRIBUTE_NAME |
static java.lang.String |
ATTRIBUTE_PACKAGE_NAME |
static java.lang.String |
ATTRIBUTE_PLAIN_CALL_SUPER |
static java.lang.String |
ATTRIBUTE_RETURN_TYPE |
static java.lang.String |
ATTRIBUTE_SIMPLE_CLASS_NAME |
static FileTemplate[] |
EMPTY_ARRAY |
static java.lang.String |
ourEncoding |
Modifier and Type | Method and Description |
---|---|
FileTemplate |
clone() |
java.lang.String |
getDescription() |
java.lang.String |
getExtension() |
java.lang.String |
getName()
Name without extension
|
java.lang.String |
getText() |
java.lang.String |
getText(java.util.Map attributes) |
java.lang.String |
getText(java.util.Properties attributes) |
java.lang.String [] |
getUnsetAttributes(java.util.Properties properties,
Project project) |
boolean |
isDefault() |
boolean |
isLiveTemplateEnabled() |
boolean |
isReformatCode() |
boolean |
isTemplateOfType(FileType fType) |
void |
setExtension(java.lang.String extension) |
void |
setLiveTemplateEnabled(boolean value) |
void |
setName(java.lang.String name) |
void |
setReformatCode(boolean reformat) |
void |
setText(java.lang.String text) |
static final FileTemplate[] EMPTY_ARRAY
static final java.lang.String ourEncoding
static final java.lang.String ATTRIBUTE_EXCEPTION
static final java.lang.String ATTRIBUTE_EXCEPTION_TYPE
static final java.lang.String ATTRIBUTE_DESCRIPTION
static final java.lang.String ATTRIBUTE_DISPLAY_NAME
static final java.lang.String ATTRIBUTE_EXPRESSION
static final java.lang.String ATTRIBUTE_EXPRESSION_TYPE
static final java.lang.String ATTRIBUTE_RETURN_TYPE
static final java.lang.String ATTRIBUTE_DEFAULT_RETURN_VALUE
static final java.lang.String ATTRIBUTE_CALL_SUPER
static final java.lang.String ATTRIBUTE_PLAIN_CALL_SUPER
static final java.lang.String ATTRIBUTE_CLASS_NAME
static final java.lang.String ATTRIBUTE_SIMPLE_CLASS_NAME
static final java.lang.String ATTRIBUTE_METHOD_NAME
static final java.lang.String ATTRIBUTE_PACKAGE_NAME
static final java.lang.String ATTRIBUTE_NAME
static final java.lang.String ATTRIBUTE_DIR_PATH
static final java.lang.String ATTRIBUTE_FILE_NAME
java.lang.String getName()
void setName(java.lang.String name)
boolean isTemplateOfType(FileType fType)
boolean isDefault()
java.lang.String getDescription()
java.lang.String getText()
void setText(java.lang.String text)
java.lang.String getText(java.util.Map attributes) throws java.io.IOException
java.io.IOException
java.lang.String getText(java.util.Properties attributes) throws java.io.IOException
java.io.IOException
java.lang.String getExtension()
void setExtension(java.lang.String extension)
boolean isReformatCode()
void setReformatCode(boolean reformat)
boolean isLiveTemplateEnabled()
void setLiveTemplateEnabled(boolean value)
FileTemplate clone()
java.lang.String [] getUnsetAttributes(java.util.Properties properties, Project project) throws ParseException
ParseException