Interface FormatTemplate
- All Superinterfaces:
ChannelSourceProvider
,Comparable<StoreElement>
,HistoryProvider
,IDProvider
,PackagePoolItem
,StoreElement
,TemplateContentProvider
,TemplateStoreElement
,Workflowable
public interface FormatTemplate
extends IDProvider, TemplateContentProvider, PackagePoolItem, TemplateStoreElement
Definition of a template specialized for formatting tasks.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.storage.HistoryProvider
HistoryProvider.RevisionProvider
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.ReleaseStatus, IDProvider.RevertType, IDProvider.UidType
-
Field Summary
Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Fields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASED
Fields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIED
-
Method Summary
Modifier and TypeMethodDescriptiongetChannel
(@NotNull TemplateSet templateSet) Provides the channel specifica with respect to the given template set.Provides this format's tag.Provides the map of style attributes.Get the StyleNode (properties-node) of the FormatTemplate as StoreElementgetView()
Provides the view mode for this format.boolean
isCdata()
Indicates the format to represent CDATA.boolean
isQuote()
Indicates whether to quote the format.boolean
isSystem()
Indicates this to be a system format.boolean
Indicates whether the format will be visible.void
setCdata
(boolean value) Defines the format to represent CDATA.void
setFormatTag
(String tag) Defines this format's tag.void
setQuote
(boolean value) Defines whether to quote the format.void
setStyleAttributes
(Map<String, String> attributes) Defines the style attributes.void
setSystem
(boolean system) Defines this to be a system format.void
The uid of format templates is used as tag name in dom and dom-table instances.void
Sets the view mode for this format.void
setVisible
(boolean visible) Defines whether the format shall be visible.Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.ChannelSourceProvider
getChannelSource, setChannelSource
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistory
Methods inherited from interface de.espirit.firstspirit.access.store.IDProvider
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseRevision, getReleaseStatus, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isInReleaseStore, isReleased, isReleased, isReleaseSupported, moveChild, moveChild, release, release, release, release, revert, setDisplayName, setMeta, setMetaFormData
Methods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
Methods inherited from interface de.espirit.firstspirit.access.store.StoreElement
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, getProject, getReferenceName, getReferences, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateContentProvider
getTemplateDocument
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStore
Methods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
UID_TYPE
The template's uid type.- Since:
- 4.0.19
-
-
Method Details
-
getStyleNode
Style getStyleNode()Get the StyleNode (properties-node) of the FormatTemplate as StoreElement- Returns:
- StyleNode as StoreElement-object
- Since:
- 3.0
-
isSystem
boolean isSystem()Indicates this to be a system format.- Returns:
true
, if it is a system format.- Since:
- 3.0
-
setSystem
void setSystem(boolean system) Defines this to be a system format.- Parameters:
system
-true
, for a system format.- Since:
- 3.0
-
getFormatTag
String getFormatTag()Provides this format's tag.- Returns:
- The format's tag.
- Since:
- 3.0
-
setFormatTag
Defines this format's tag.- Parameters:
tag
- The format's tag.- Since:
- 3.0
-
getView
String getView()Provides the view mode for this format.- Returns:
- The view mode.
- Since:
- 3.0
-
setView
Sets the view mode for this format.- Parameters:
view
- The view mode.- Since:
- 3.0
-
isQuote
boolean isQuote()Indicates whether to quote the format.- Returns:
true
, if to be quoted.- Since:
- 3.0
-
setQuote
void setQuote(boolean value) Defines whether to quote the format.- Parameters:
value
-true
, if to quote.- Since:
- 3.0
-
isCdata
boolean isCdata()Indicates the format to represent CDATA.- Returns:
true
, if it is CDATA- Since:
- 3.0
-
setCdata
void setCdata(boolean value) Defines the format to represent CDATA.- Parameters:
value
-true
, if it is CDATA.- Since:
- 3.0
-
isVisible
boolean isVisible()Indicates whether the format will be visible.- Returns:
true
, if visible.- Since:
- 3.0
-
setVisible
void setVisible(boolean visible) Defines whether the format shall be visible.- Parameters:
visible
-true
, for visibility.- Since:
- 3.0
-
getStyleAttributes
Provides the map of style attributes.- Returns:
- The style attributes.
- Since:
- 3.0
-
setStyleAttributes
Defines the style attributes.- Parameters:
attributes
- The style attributes.- Since:
- 3.0
-
getChannel
Provides the channel specifica with respect to the given template set.- Parameters:
templateSet
- The template set.- Returns:
- The specifica for the requested channel.
- Since:
- 3.0
- See Also:
-
setUid
The uid of format templates is used as tag name in dom and dom-table instances. The provideduid
should contain only lower case characters.
If the uid is changed and the tag name is still in use this will lead to rendering errors. Setting the uid will also change the attributetag
ofthe style node
.- Specified by:
setUid
in interfaceIDProvider
- Parameters:
value
- new unique identifier; should contain only lower case characters - internally this value is transformed to lower case- Since:
- 4.0
- See Also:
-