Package org.javlo.template
Class TemplatePlugin
- java.lang.Object
-
- org.javlo.template.TemplatePlugin
-
public class TemplatePlugin extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTemplatePlugin.TemplatePluginIdComparator
-
Constructor Summary
Constructors Constructor Description TemplatePlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFolder()folder of the plugin inside the template.StringgetHTMLHead(GlobalContext globalContext)StringgetId()combination of name and version.static TemplatePlugingetInstance(File templatePluginFolder)StringgetLabel()StringgetName()StringgetVersion()voidimportInTemplate(ContentContext ctx, File templateFolder)booleanisActiveInEdition()booleanisActiveOnScreenshot()protected PropertiesloadConfig(String config)
-
-
-
Field Detail
-
HOME_KEY
public static final String HOME_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static TemplatePlugin getInstance(File templatePluginFolder) throws IOException
- Throws:
IOException
-
getHTMLHead
public String getHTMLHead(GlobalContext globalContext) throws IOException
- Throws:
IOException
-
isActiveInEdition
public boolean isActiveInEdition()
-
isActiveOnScreenshot
public boolean isActiveOnScreenshot()
-
importInTemplate
public void importInTemplate(ContentContext ctx, File templateFolder) throws IOException
- Throws:
IOException
-
getName
public String getName()
-
getLabel
public String getLabel()
-
getVersion
public String getVersion()
-
getId
public String getId()
combination of name and version.- Returns:
-
getFolder
public String getFolder()
folder of the plugin inside the template.- Returns:
-
loadConfig
protected Properties loadConfig(String config)
-
-