Class MetaModelTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.model.MetaModelTemplate
This template can be used to initialize a meta model.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MetaModelTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, DomainValuesFactoryTemplate domainValuesFactory, String name) Constructs the template with the required parameters.MetaModelTemplate
(String name) Constructs the template with a new report. -
Method Summary
Modifier and TypeMethodDescriptionaddAggregate
(String name) This method may be used to add an aggregate definition to the meta model.addAggregate
(String name, String functionalName) This method may be used to add an aggregate definition to the meta model.This method may be used to add a domain to the meta model.This method may be used to add a non-singleton entity definition to the meta model.This method may be used to add an entity definition to the meta model.addStaticInstance
(String entityName, String instanceName) This method may be used to add a static instance to the meta model.getAttribute
(String attributeName) This method may be used to request the attribute template for the specified name.protected Iterator
<DomainTemplate> protected Iterator
<EntityTemplate> protected Iterator
<InstanceTemplate> This method returns the module name.com.aquima.interactions.metamodel.ds.IMetaModelDS
This method converts the template to a data source that can be used to initialize a meta model.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
MetaModelTemplate
public MetaModelTemplate()Default constructor. -
MetaModelTemplate
Constructs the template with a new report.- Parameters:
name
- The name of the module the model belongs to.
-
MetaModelTemplate
public MetaModelTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, DomainValuesFactoryTemplate domainValuesFactory, String name) Constructs the template with the required parameters.- Parameters:
report
- The initialization report that should be used to add errors and warnings to.domainValuesFactory
- The domainValuesFactory used for external domains.name
- The name of the module the model belongs to.
-
-
Method Details
-
getModuleName
This method returns the module name.- Returns:
- the module name, never null.
-
getAttribute
This method may be used to request the attribute template for the specified name.- Parameters:
attributeName
- The name of the attribute whose template is requested.- Returns:
- The attribute template for the specified name.
-
getEntity
-
getEntities
-
getAggregates
-
addEntity
This method may be used to add a non-singleton entity definition to the meta model.- Parameters:
name
- The name of the entity that should be added.- Returns:
- Entity template representing the added entity.
-
addEntity
This method may be used to add an entity definition to the meta model.- Parameters:
name
- The name of the entity that should be added.parent
- The name of the parent entity (optional).singleton
- Boolean indicating if the added entity is a singleton.- Returns:
- Entity template representing the added entity.
-
addAggregate
This method may be used to add an aggregate definition to the meta model.- Parameters:
name
- The name of the aggregate that should be added.- Returns:
- Aggregate template representing the added aggregate.
-
addAggregate
This method may be used to add an aggregate definition to the meta model.- Parameters:
name
- The name of the aggregate that should be added.functionalName
- The functional name of the aggregate that should be added.- Returns:
- Aggregate template representing the added aggregate.
-
addStaticInstance
This method may be used to add a static instance to the meta model.- Parameters:
entityName
- The name of the entity of the static instance.instanceName
- The name of the static instance.- Returns:
- Instance template representing the added static instance.
-
getInstances
-
getDomains
-
addDomain
This method may be used to add a domain to the meta model.- Parameters:
name
- The name of the domain that should be added.- Returns:
- Domain template representing the domain that was added.
-
toDataSource
public com.aquima.interactions.metamodel.ds.IMetaModelDS toDataSource()This method converts the template to a data source that can be used to initialize a meta model.- Returns:
- a data source that can be used to initialize a meta model.
-
getDomainValuesFactory
-