Class DomainTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.model.DomainTemplate
Template class that can be used to initialize a domain definition.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorDescriptionDomainTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String name) Constructs the template with the required parameters.DomainTemplate
(String name) Constructs the template with the required parameters. -
Method Summary
Modifier and TypeMethodDescriptionaddValue
(com.aquima.interactions.foundation.IPrimitiveValue value, com.aquima.interactions.foundation.text.IMultilingualText description) This method may be used to add a value to the domain.This method may be used to add a value to the domain.This method may be used to add a value to the domain.protected com.aquima.interactions.foundation.DataType
protected String
getName()
protected Iterator
<DomainValueTemplate> protected boolean
void
setDataType
(com.aquima.interactions.foundation.DataType type) This method set the datatype of the domain.void
setExternal
(boolean isExternal) This method sets the isExternal flag for this domain template.com.aquima.interactions.metamodel.ds.IDomainDS
This method converts the template to a data source that can be used to initialize a domain definition.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
DomainTemplate
Constructs the template with the required parameters.- Parameters:
name
- The name of the domain.
-
DomainTemplate
public DomainTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name) Constructs the template with the required parameters.- Parameters:
report
- The initialization report that should be used to add errors and warnings to.name
- The name of the domain.
-
-
Method Details
-
isExternal
protected boolean isExternal() -
setExternal
public void setExternal(boolean isExternal) This method sets the isExternal flag for this domain template.- Parameters:
isExternal
- boolean flag.
-
getName
-
getValues
-
addValue
public DomainValueTemplate addValue(com.aquima.interactions.foundation.IPrimitiveValue value, com.aquima.interactions.foundation.text.IMultilingualText description) This method may be used to add a value to the domain.- Parameters:
value
- The value that should be added.description
- The description (display text) of the value.
-
addValue
This method may be used to add a value to the domain.- Parameters:
value
- The value that should be added.description
- The description (display text) of the value.
-
addValue
public DomainValueTemplate addValue(String value, com.aquima.interactions.foundation.text.IMultilingualText description) This method may be used to add a value to the domain.- Parameters:
value
- The value that should be added.description
- The description (display text) of the value.
-
toDataSource
public com.aquima.interactions.metamodel.ds.IDomainDS toDataSource()This method converts the template to a data source that can be used to initialize a domain definition.- Returns:
- a data source that can be used to initialize a domain definition.
-
getDataType
protected com.aquima.interactions.foundation.DataType getDataType() -
setDataType
public void setDataType(com.aquima.interactions.foundation.DataType type) This method set the datatype of the domain.- Parameters:
type
- The datatype
-