public enum CodeletTemplateConfig extends Enum<CodeletTemplateConfig>
Loads and manages default templates and user-extra gaps. Loading is executed by CodeletBootstrap.
aliteralmind __DASH__ github __AT__ yahoo __DOT__ com), dual-licensed under the LGPL (version 3.0 or later) or the ASL (version 2.0). See source code for details. http://codelet.aliteralmind.com, https://github.com/aliteralmind/codelet| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static ConsoleOutTemplate |
getDefaultConsoleOutTemplate()
The path to the default template used for
{@.codelet.out} taglets. |
static FileTextTemplate |
getDefaultFileTextTemplate()
The path to the default template used for
{@.file.textlet} taglets. |
static SourceAndOutTemplate |
getDefaultSourceAndOutTemplate()
The path to the default template used for
{@.codelet.and.out} taglets. |
static SourceCodeTemplate |
getDefaultSourceCodeTemplate()
The path to the default template used for (source-code)
{@.codelet} taglets. |
static UserExtraGapGetter |
getUserExtraGapsClass()
The class that defines extra gaps that can be placed in Codelet templates.
|
static CodeletTemplateConfig |
loadConfigGetInstance()
Load configuration and return theh instance.
|
static CodeletTemplateConfig |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CodeletTemplateConfig[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static boolean |
wasLoaded()
Was configuration loaded?.
|
public static final CodeletTemplateConfig INSTANCE
public static CodeletTemplateConfig[] values()
for (CodeletTemplateConfig c : CodeletTemplateConfig.values()) System.out.println(c);
public static CodeletTemplateConfig valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static final CodeletTemplateConfig loadConfigGetInstance() throws ClassNotFoundException
Load configuration and return theh instance. Call only once.
IllegalStateException - If
CodeletBaseConfig.wasLoaded
false, or wasLoaded() is true.ClassNotFoundException - If
CodeletBaseConfig.getUserExtraGapsClassName()
ClassCastException - If the class exists, but is not a UserExtraGapGetter.PropertiesUtilpublic static final boolean wasLoaded()
Was configuration loaded?.
true If all values loaded successfully.loadConfigGetInstance()public static final SourceCodeTemplate getDefaultSourceCodeTemplate()
The path to the default template used for (source-code) {@.codelet} taglets.
public static final ConsoleOutTemplate getDefaultConsoleOutTemplate()
The path to the default template used for {@.codelet.out} taglets.
public static final SourceAndOutTemplate getDefaultSourceAndOutTemplate()
The path to the default template used for {@.codelet.and.out} taglets.
public static final FileTextTemplate getDefaultFileTextTemplate()
The path to the default template used for {@.file.textlet} taglets.
public static final UserExtraGapGetter getUserExtraGapsClass()
The class that defines extra gaps that can be placed in Codelet templates.
Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet