Class CometTemplate
java.lang.Object
com.priint.pubserver.tagging.TaggingObject
com.priint.pubserver.comet.entity.CometEntity
com.priint.pubserver.comet.entity.template.CometTemplate
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CometSnippet,CometTableTemplate
@CometTypeConstraints(referenceBinding=TIGHT,
dependencies=@CometReferences(references=@CometReference(restriction=TWIN,targetClass=CometTemplateData.class)))
public class CometTemplate
extends CometEntity
Java class for the Template configuration type
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe Enum PageBreak.static enumThe Enum Position.static classThe Class Record.static classThe Class Spread.static enumThe Enum Visibility.Nested classes/interfaces inherited from class com.priint.pubserver.comet.entity.CometEntity
CometEntity.CategoryNested classes/interfaces inherited from class com.priint.pubserver.tagging.TaggingObject
TaggingObject.LinkedSetWrapper<T> -
Field Summary
Fields inherited from class com.priint.pubserver.comet.entity.CometEntity
id, TAG_DOMAIN_QUALIFIER, TAG_GROUP_QUALIFIER, TAG_TYPE_QUALIFIERFields inherited from class com.priint.pubserver.tagging.TaggingObject
tagsSet -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new comet template.CometTemplate(int id) Instantiates a new comet template. -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck minimal constraints.static final booleancontains(List<CometTemplate> templates, int id) Contains.static final booleancontains(List<CometTemplate> templates, CometTemplate search) Contains.final booleandiscards(CometTemplate other) Discards.Gets the active.Gets the bottom pos.Gets the builds the support script.Gets the builds the support script id.Gets the color id.Gets the description.Gets the entity id.Gets the format.Gets the checks for min size.Gets the checks for shapes.getLabel()Gets the label.Gets the left pos.Gets the magnets.Gets the memberships.Gets the mirrored.Gets the page break.static CometTemplate.PageBreakgetPageBreakEnum(int externValue) Gets the page break enum.Gets the real height.Gets the real width.Gets the record.Gets the repository filename.Gets the repository path.Gets the right pos.Gets the spread.Gets the state id.Gets the textflow prefix 1.Gets the textflow prefix 1 script.Gets the textflow prefix 1 script id.Gets the textflow prefix N.Gets the textflow prefix N script.Gets the textflow prefix N script id.Gets the top pos.static final Collection<CometTemplate>Gets the top templates.Gets the type id.Gets the visibility.booleanChecks if is template master.final booleanreferences(CometTemplate other) References.voidSets the active.voidsetBottomPos(Double bottomPos) Sets the bottom pos.voidsetBuildSupportScript(CometBuildSupportScript buildSupportScript) Sets the builds the support script.voidsetBuildSupportScriptId(Integer buildSupportScriptId) Sets the builds the support script id.voidsetColorId(Integer colorId) Sets the color id.voidsetDescription(String description) Sets the description.voidsetEntityId(String entityId) Sets the entity id.voidSets the format.voidsetHasMinSize(Boolean hasMinSize) Sets the checks for min size.voidsetHasShapes(Boolean hasShapes) Sets the checks for shapes.voidSets the label.voidsetLeftPos(Double leftPos) Sets the left pos.voidsetMagnets(Boolean magnets) Sets the magnets.voidsetMemberships(String memberships) Sets the memberships.voidsetMirrored(Boolean mirrored) Sets the mirrored.voidsetPageBreak(CometTemplate.PageBreak pageBreak) Sets the page break.voidsetRealHeight(Double realHeight) Sets the real height.voidsetRealWidth(Double realWidth) Sets the real width.voidsetRecord(CometTemplate.Record record) Sets the record.voidsetRightPos(Double rightPos) Sets the right pos.voidsetSpread(CometTemplate.Spread spread) Sets the spread.voidsetStateId(Integer stateId) Sets the state id.voidsetTextflowPrefix1(String textflowPrefix1) Sets the textflow prefix 1.voidsetTextflowPrefix1Script(CometTemplateTextPrefixScript textflowPrefix1Script) Sets the textflow prefix 1 script.voidsetTextflowPrefix1ScriptId(Integer textflowPrefix1ScriptId) Sets the textflow prefix 1 script id.voidsetTextflowPrefixN(String textflowPrefixN) Sets the textflow prefix N.voidsetTextflowPrefixNScript(CometTemplateTextPrefixScript textflowPrefixNScript) Sets the textflow prefix N script.voidsetTextflowPrefixNScriptId(Integer textflowPrefixNScriptId) Sets the textflow prefix N script id.voidSets the top pos.voidSets the type id.voidsetVisibility(CometTemplate.Visibility visibility) Sets the visibility.Methods inherited from class com.priint.pubserver.comet.entity.CometEntity
entityEquals, equals, getEntityDescription, getEntityLabel, getId, getReferenceConstraints, hashCode, initDefaultValues, initDefaultValues, setIdMethods inherited from class com.priint.pubserver.tagging.TaggingObject
addToTags, getTags, getTagValue, inTags, isA, removeFromTags, searchListByTags, setTags, setTags
-
Constructor Details
-
CometTemplate
public CometTemplate()Instantiates a new comet template. -
CometTemplate
public CometTemplate(int id) Instantiates a new comet template.- Parameters:
id- the id
-
-
Method Details
-
getPageBreakEnum
Gets the page break enum.- Parameters:
externValue- the extern value- Returns:
- the page break enum
-
checkMinimalConstraints
Check minimal constraints.- Overrides:
checkMinimalConstraintsin classCometEntity- Throws:
CometException- the comet exception
-
getActive
Gets the active.- Returns:
- the active
-
getVisibility
Gets the visibility.- Returns:
- the visibility
-
getBottomPos
Gets the bottom pos.- Returns:
- the bottom pos
-
getBuildSupportScript
Gets the builds the support script.- Returns:
- the builds the support script
-
getBuildSupportScriptId
Gets the builds the support script id.- Returns:
- the builds the support script id
-
getHasShapes
Gets the checks for shapes.- Returns:
- the checks for shapes
-
setHasShapes
Sets the checks for shapes.- Parameters:
hasShapes- the new checks for shapes
-
getColorId
Gets the color id.- Returns:
- the color id
-
getRealWidth
Gets the real width.- Returns:
- the real width
-
setRealWidth
Sets the real width.- Parameters:
realWidth- the new real width
-
getRealHeight
Gets the real height.- Returns:
- the real height
-
setRealHeight
Sets the real height.- Parameters:
realHeight- the new real height
-
getDescription
Gets the description.- Returns:
- the description
-
getEntityId
Gets the entity id.- Returns:
- the entity id
-
getFormat
Gets the format.- Returns:
- the format
-
getLabel
Gets the label.- Returns:
- the label
-
getLeftPos
Gets the left pos.- Returns:
- the left pos
-
getMagnets
Gets the magnets.- Returns:
- the magnets
-
getMemberships
Gets the memberships.- Returns:
- the memberships
-
getMirrored
Gets the mirrored.- Returns:
- the mirrored
-
getRecord
Gets the record.- Returns:
- the record
-
getRepositoryFilename
Gets the repository filename.- Overrides:
getRepositoryFilenamein classCometEntity- Returns:
- the repository filename
- Throws:
CometException- the comet exception
-
getRepositoryPath
Gets the repository path.- Overrides:
getRepositoryPathin classCometEntity- Returns:
- the repository path
- Throws:
CometException- the comet exception
-
getRightPos
Gets the right pos.- Returns:
- the right pos
-
getSpread
Gets the spread.- Returns:
- the spread
-
getStateId
Gets the state id.- Returns:
- the state id
-
getTextflowPrefix1
Gets the textflow prefix 1.- Returns:
- the textflow prefix 1
-
getTextflowPrefix1Script
Gets the textflow prefix 1 script.- Returns:
- the textflow prefix 1 script
-
getTextflowPrefix1ScriptId
Gets the textflow prefix 1 script id.- Returns:
- the textflow prefix 1 script id
-
getTextflowPrefixN
Gets the textflow prefix N.- Returns:
- the textflow prefix N
-
getTextflowPrefixNScript
Gets the textflow prefix N script.- Returns:
- the textflow prefix N script
-
getTextflowPrefixNScriptId
Gets the textflow prefix N script id.- Returns:
- the textflow prefix N script id
-
getTopPos
Gets the top pos.- Returns:
- the top pos
-
getTypeId
Gets the type id.- Returns:
- the type id
-
setActive
Sets the active.- Parameters:
active- the new active
-
setVisibility
Sets the visibility.- Parameters:
visibility- the new visibility
-
setBottomPos
Sets the bottom pos.- Parameters:
bottomPos- the new bottom pos
-
setBuildSupportScript
Sets the builds the support script.- Parameters:
buildSupportScript- the new builds the support script
-
setBuildSupportScriptId
Sets the builds the support script id.- Parameters:
buildSupportScriptId- the new builds the support script id
-
setColorId
Sets the color id.- Parameters:
colorId- the new color id
-
setDescription
Sets the description.- Parameters:
description- the new description
-
setEntityId
Sets the entity id.- Parameters:
entityId- the new entity id
-
setFormat
Sets the format.- Parameters:
format- the new format
-
setLabel
Sets the label.- Parameters:
label- the new label
-
setLeftPos
Sets the left pos.- Parameters:
leftPos- the new left pos
-
setMagnets
Sets the magnets.- Parameters:
magnets- the new magnets
-
setMemberships
Sets the memberships.- Parameters:
memberships- the new memberships
-
setMirrored
Sets the mirrored.- Parameters:
mirrored- the new mirrored
-
setRecord
Sets the record.- Parameters:
record- the new record
-
setRightPos
Sets the right pos.- Parameters:
rightPos- the new right pos
-
setSpread
Sets the spread.- Parameters:
spread- the new spread
-
setStateId
Sets the state id.- Parameters:
stateId- the new state id
-
setTextflowPrefix1
Sets the textflow prefix 1.- Parameters:
textflowPrefix1- the new textflow prefix 1
-
setTextflowPrefix1Script
Sets the textflow prefix 1 script.- Parameters:
textflowPrefix1Script- the new textflow prefix 1 script
-
setTextflowPrefix1ScriptId
Sets the textflow prefix 1 script id.- Parameters:
textflowPrefix1ScriptId- the new textflow prefix 1 script id
-
setTextflowPrefixN
Sets the textflow prefix N.- Parameters:
textflowPrefixN- the new textflow prefix N
-
setTextflowPrefixNScript
Sets the textflow prefix N script.- Parameters:
textflowPrefixNScript- the new textflow prefix N script
-
setTextflowPrefixNScriptId
Sets the textflow prefix N script id.- Parameters:
textflowPrefixNScriptId- the new textflow prefix N script id
-
setTopPos
Sets the top pos.- Parameters:
topPos- the new top pos
-
setTypeId
Sets the type id.- Parameters:
typeId- the new type id
-
getPageBreak
Gets the page break.- Returns:
- the page break
-
setPageBreak
Sets the page break.- Parameters:
pageBreak- the new page break
-
isTemplateMaster
public boolean isTemplateMaster()Checks if is template master.- Returns:
- true, if is template master
-
references
References.- Parameters:
other- the other- Returns:
- true, if successful
-
discards
Discards.- Parameters:
other- the other- Returns:
- true, if successful
-
getTopTemplates
Gets the top templates.- Parameters:
in- the in- Returns:
- the top templates
-
contains
Contains.- Parameters:
templates- the templatesid- the id- Returns:
- true, if successful
-
contains
Contains.- Parameters:
templates- the templatessearch- the search- Returns:
- true, if successful
-
getHasMinSize
Gets the checks for min size.- Returns:
- the checks for min size
-
setHasMinSize
Sets the checks for min size.- Parameters:
hasMinSize- the new checks for min size
-