Interface TemplateSet
public interface TemplateSet
A template set
- Since:
- 3.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionProvides the conversion table to be used with this template set.@Nullable StringgetDescription(Language language) Get the editorial description of this TemplateSet for the given language ornullif not defined for the language@Nullable StringgetDisplayName(Language language) Gets display name of the TemplateSet for the given language.Gets the extension of the TemplateSetlonggetId()Provides the ID for this template set.Not evaluated by FirstSpirit.@Nullable PresentationChannelGets thePresentationChannelof this TemplateSet@Nullable StringGets the name of the presentation channel of the template setGets the conversion table of the template setgetUid()Returns the unique identifier of this TemplateSet.booleanisActive()Is this TemplateSet activebooleanReturns whether or not the template inspection is enabled for this template set.booleanDeprecated.since 5.0.302 - no replacementvoidsetActive(boolean active) Activate or deactivate the TemplateSetvoidDefines the conversion table to be used with this template set.voidsetConversionTable(String tableName) Sets the conversion table of the template setvoidsetDescription(Language language, String description) Sets the editorial description of this TemplateSet for the given languagevoidsetDisplayName(Language language, String displayName) Sets the display name of the TemplateSet for the given languagevoidsetExtension(String extension) Sets the extension of the TemplateSetvoidsetLinefeed(String linefeed) Not evaluated by FirstSpirit.voidsetPresentationChannel(String channelName) Sets the PresentationChannel of the TemplateSetvoidsetPresentationChannelId(long channel) Defines the presentation channel of this template set.voidsetTemplateInspectionEnabled(boolean enabled) Enables or disables the template inspection for this template set.voidSets the unique identifier of this TemplateSet.voidsetUseWebeditForPreview(boolean useWebedit) Deprecated.since 5.0.302 - no replacement
-
Field Details
-
DOS_LINEFEED
Linefeed for Windows.- Since:
- 4.0
- See Also:
-
UNIX_LINEFEED
Linefeed for Unix-based systems.- Since:
- 4.0
- See Also:
-
MAC_LINEFEED
Linefeed for Apple.- Since:
- 4.0
- See Also:
-
-
Method Details
-
getUid
String getUid()Returns the unique identifier of this TemplateSet.- Returns:
- the uid of this TemplateSet
- Since:
- 4.2.12
- See Also:
-
setUid
Sets the unique identifier of this TemplateSet.- Since:
- 4.2.12
- See Also:
-
getDisplayName
Gets display name of the TemplateSet for the given language.- Parameters:
language-- Returns:
- the name or
nullif not defined - Since:
- 4.2.12
-
setDisplayName
Sets the display name of the TemplateSet for the given language- Parameters:
displayName- the new displaynamelanguage- the language to set the display name for- Since:
- 4.2.12
-
getDescription
Get the editorial description of this TemplateSet for the given language ornullif not defined for the language- Parameters:
language- the language to get the description for- Returns:
- the description for the given language if defined,
nullotherwise - Since:
- 4.2.12
-
setDescription
Sets the editorial description of this TemplateSet for the given language- Parameters:
description- the new descriptionlanguage- the language to set the description for- Since:
- 4.2.12
-
getExtension
String getExtension()Gets the extension of the TemplateSet- Returns:
- the extension value
- Since:
- 3.0
-
setExtension
Sets the extension of the TemplateSet- Parameters:
extension- the new extension- Since:
- 3.0
-
getPresentationChannelName
Gets the name of the presentation channel of the template set- Returns:
- the presentation channel name
- Since:
- 3.0
-
setPresentationChannel
Sets the PresentationChannel of the TemplateSet- Parameters:
channelName- the PresentationChannel identified by its name- Since:
- 3.0
-
getPresentationChannel
Gets thePresentationChannelof this TemplateSet- Returns:
PresentationChannelof this TemplateSet- Since:
- 4.0
-
setPresentationChannelId
void setPresentationChannelId(long channel) Defines the presentation channel of this template set.- Parameters:
channel- The presentation channel id.- Since:
- 4.0
-
isActive
boolean isActive()Is this TemplateSet active- Returns:
- is active
- Since:
- 3.0
-
setActive
void setActive(boolean active) Activate or deactivate the TemplateSet- Parameters:
active- activate/deactivate- Since:
- 3.0
-
setConversionTable
Sets the conversion table of the template set- Parameters:
tableName- the name of the conversion table- Since:
- 3.0
-
setConversionTable
Defines the conversion table to be used with this template set.- Parameters:
table- The conversion table.- Since:
- 4.0
-
getConversionTable
ConversionTable getConversionTable()Provides the conversion table to be used with this template set.- Returns:
- The conversion table.
- Since:
- 4.0
-
getTemplateSetConversionTable
String getTemplateSetConversionTable()Gets the conversion table of the template set- Returns:
- the name of the conversion table
- Since:
- 3.0
-
getId
long getId()Provides the ID for this template set.- Returns:
- The ID.
- Since:
- 4.0
-
getLinefeed
String getLinefeed()Not evaluated by FirstSpirit. May be used inContentProcessorimplementations.- Since:
- 4.0
-
setLinefeed
Not evaluated by FirstSpirit. May be used inContentProcessorimplementations.- Since:
- 4.0
-
setUseWebeditForPreview
Deprecated.since 5.0.302 - no replacementDefines to use this template set for webedit based previews.- Parameters:
useWebedit-true, to use as preview.- Since:
- 4.0
-
isUseWebeditForPreview
Deprecated.since 5.0.302 - no replacementIndicates whether to use this template set for webedit based previews.- Returns:
true, if used for preview.- Since:
- 4.0
-
isTemplateInspectionEnabled
boolean isTemplateInspectionEnabled()Returns whether or not the template inspection is enabled for this template set. If enabled, the preview generation will try to enhance the generated html code with template related attributes. This only works for html based template sets.- Returns:
- template inspection enabled state
- Since:
- 5.1.304
-
setTemplateInspectionEnabled
void setTemplateInspectionEnabled(boolean enabled) Enables or disables the template inspection for this template set. If enabled, the preview generation will try to enhance the generated html code with template related attributes. This only works for html based template sets.- Parameters:
enabled- template inspection enabled state- Since:
- 5.1.304
-