Class ComposerTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.ComposerTemplate
Template that may be used to initialize a composer.
- Since:
- 7.0
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionComposerTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, ProjectTemplate project, MetaModelTemplate model, ConfigurationTemplate config) Constructs the composer template with the required arguments.ComposerTemplate
(ProjectTemplate project, MetaModelTemplate model, ConfigurationTemplate config) Constructs the composer template with the required arguments. -
Method Summary
Modifier and TypeMethodDescriptionThis method may be used to add an asset definition.This method may be used to add a button definition.addContainer
(String name) This method may be used to add a container definition.addContent
(String name) This method may be used to add a content definition.addContentStyle
(String name) This method may be used to add a content style definition.addDocument
(String name) This method may be used to add a document definition.This method may be used to add a field definition.This method may be used to add an image definition.This method may be used to add a page definition.This method may be used to add a text definition.protected AssetTemplate
protected Iterator
<AssetTemplate> protected ButtonTemplate
protected Iterator
<ButtonTemplate> protected ConfigurationTemplate
protected ContainerTemplate
getContainer
(String name) This method returns all the containers registered in the composer.protected Iterator
<ContainerTemplate> protected ContentTemplate
getContent
(String name) protected Iterator
<ContentTemplate> protected Iterator
<ContentStyleTemplate> protected DocumentTemplate
getDocument
(String name) protected Iterator
<DocumentTemplate> protected Iterator
<FieldTemplate> protected ImageTemplate
protected Iterator
<ImageTemplate> protected MetaModelTemplate
protected PageTemplate
protected Iterator
<PageTemplate> getPages()
protected ProjectTemplate
protected TextTemplate
protected Iterator
<TextTemplate> getTexts()
com.aquima.interactions.composer.ds.IComposerDS
This method converts the template to a data source that can be used to initialize a composer.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ComposerTemplate
public ComposerTemplate(ProjectTemplate project, MetaModelTemplate model, ConfigurationTemplate config) Constructs the composer template with the required arguments.- Parameters:
project
- Template containing the project wide definitionsmodel
- Template containing the meta model definitions.config
- Template containing the configuration settings.
-
ComposerTemplate
public ComposerTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, ProjectTemplate project, MetaModelTemplate model, ConfigurationTemplate config) Constructs the composer template with the required arguments.- Parameters:
report
- The initialization report that should be used for errors and warnings.project
- Template containing the project wide definitionsmodel
- Template containing the meta model definitions.config
- Template containing the configuration settings.
-
-
Method Details
-
getConfiguration
-
getFields
-
addField
This method may be used to add a field definition.- Parameters:
fieldName
- The attribute for which the field definition should be added.- Returns:
- Field template representing the added field.
-
getButtons
-
getButton
-
addButton
This method may be used to add a button definition.- Parameters:
name
- The name of the button that should be added.- Returns:
- Button template representing the added button.
-
getContainersIterator
-
getContainer
-
getPage
-
addPage
This method may be used to add a page definition.- Parameters:
name
- The name of the page that should be added.- Returns:
- Page template representing the added page.
-
addContainer
This method may be used to add a container definition.- Parameters:
name
- The name of the container that should be added.- Returns:
- Container template representing the added container.
-
addContentStyle
This method may be used to add a content style definition.- Parameters:
name
- The name of the content style.- Returns:
- Template representing the content style that was added.
-
getContentStyles
-
getText
-
getImage
-
addText
This method may be used to add a text definition.- Parameters:
name
- The name of the text definition.- Returns:
- Text template representing the added text.
-
addImage
This method may be used to add an image definition.- Parameters:
name
- The name of the image definition.- Returns:
- Image template representing the added image.
-
getTexts
-
getContent
-
addContent
This method may be used to add a content definition.- Parameters:
name
- The name of the content definition.- Returns:
- Content template representing the added content.
-
getContents
-
getDocument
-
addDocument
This method may be used to add a document definition.- Parameters:
name
- The name of the document that should be added.- Returns:
- Document template representing the added document.
-
getDocuments
-
getImages
-
getAssets
-
getPages
-
getAsset
-
addAsset
This method may be used to add an asset definition.- Parameters:
name
- The name of the asset that should be added.- Returns:
- Asset template representing the added asset.
-
toDataSource
public com.aquima.interactions.composer.ds.IComposerDS toDataSource()This method converts the template to a data source that can be used to initialize a composer.- Returns:
- a data source that can be used to initialize a composer.
-
getProjectTemplate
-
getContainers
This method returns all the containers registered in the composer.- Returns:
- The container templates, never null.
-
getMetaModel
-