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.RevisionProviderNested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType -
Field Summary
FieldsFields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOWFields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASEDFields 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.booleanisCdata()Indicates the format to represent CDATA.booleanisQuote()Indicates whether to quote the format.booleanisSystem()Indicates this to be a system format.booleanIndicates whether the format will be visible.voidsetCdata(boolean value) Defines the format to represent CDATA.voidsetFormatTag(String tag) Defines this format's tag.voidsetQuote(boolean value) Defines whether to quote the format.voidsetStyleAttributes(Map<String, String> attributes) Defines the style attributes.voidsetSystem(boolean system) Defines this to be a system format.voidThe uid of format templates is used as tag name in dom and dom-table instances.voidSets the view mode for this format.voidsetVisible(boolean visible) Defines whether the format shall be visible.Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.ChannelSourceProvider
getChannelSource, setChannelSourceMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistoryMethods 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, isReachableInReleaseStore, isReleased, isReleased, isReleaseSupported, moveChild, moveChild, release, release, release, release, revert, setDisplayName, setMeta, setMetaFormDataMethods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeStateMethods 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, toXmlMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateContentProvider
getTemplateDocumentMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStoreMethods 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 provideduidshould 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 attributetagofthe style node.- Specified by:
setUidin 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:
-