public abstract class FileTemplateBase extends java.lang.Object implements FileTemplate
ATTRIBUTE_CALL_SUPER, ATTRIBUTE_CLASS_NAME, ATTRIBUTE_DEFAULT_RETURN_VALUE, ATTRIBUTE_DESCRIPTION, ATTRIBUTE_DIR_PATH, ATTRIBUTE_DISPLAY_NAME, ATTRIBUTE_EXCEPTION, ATTRIBUTE_EXCEPTION_TYPE, ATTRIBUTE_EXPRESSION, ATTRIBUTE_EXPRESSION_TYPE, ATTRIBUTE_FILE_NAME, ATTRIBUTE_METHOD_NAME, ATTRIBUTE_NAME, ATTRIBUTE_PACKAGE_NAME, ATTRIBUTE_PLAIN_CALL_SUPER, ATTRIBUTE_RETURN_TYPE, ATTRIBUTE_SIMPLE_CLASS_NAME, EMPTY_ARRAY, ourEncoding
Constructor and Description |
---|
FileTemplateBase() |
Modifier and Type | Method and Description |
---|---|
FileTemplateBase |
clone() |
protected java.lang.String |
getDefaultText() |
java.lang.String |
getQualifiedName() |
static java.lang.String |
getQualifiedName(java.lang.String name,
java.lang.String 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 |
isLiveTemplateEnabled() |
boolean |
isLiveTemplateEnabledByDefault() |
boolean |
isLiveTemplateEnabledChanged() |
boolean |
isReformatCode() |
boolean |
isTemplateOfType(FileType fType) |
void |
setLiveTemplateEnabled(boolean value) |
void |
setReformatCode(boolean reformat) |
void |
setText(java.lang.String text) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getExtension, getName, isDefault, setExtension, setName
public final boolean isReformatCode()
isReformatCode
in interface FileTemplate
public final void setReformatCode(boolean reformat)
setReformatCode
in interface FileTemplate
public final java.lang.String getQualifiedName()
public static java.lang.String getQualifiedName(java.lang.String name, java.lang.String extension)
public final java.lang.String getText()
getText
in interface FileTemplate
public final void setText(java.lang.String text)
setText
in interface FileTemplate
protected java.lang.String getDefaultText()
public final java.lang.String getText(java.util.Map attributes) throws java.io.IOException
getText
in interface FileTemplate
java.io.IOException
public final java.lang.String getText(java.util.Properties attributes) throws java.io.IOException
getText
in interface FileTemplate
java.io.IOException
public final java.lang.String [] getUnsetAttributes(java.util.Properties properties, Project project) throws ParseException
getUnsetAttributes
in interface FileTemplate
ParseException
public FileTemplateBase clone()
clone
in interface FileTemplate
clone
in class java.lang.Object
public boolean isTemplateOfType(FileType fType)
isTemplateOfType
in interface FileTemplate
public boolean isLiveTemplateEnabled()
isLiveTemplateEnabled
in interface FileTemplate
public void setLiveTemplateEnabled(boolean value)
setLiveTemplateEnabled
in interface FileTemplate
public boolean isLiveTemplateEnabledChanged()
public boolean isLiveTemplateEnabledByDefault()