Class GroupParticleMappingTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.ParticleMappingTemplate
com.aquima.interactions.test.templates.communication.GroupParticleMappingTemplate
This class may be used to quickly initialize a model.
- Since:
- 9.0
- Author:
- Jon van Leuven, Arjan Pragt
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GroupParticleMappingTemplate
(com.aquima.interactions.communication.GroupParticleType groupType, String relationName, com.aquima.interactions.foundation.report.IInitializationReport report) -
Method Summary
Modifier and TypeMethodDescriptionThis method creates a sub any particle.This method creates a sub any particle.addElement
(String name) This method adds an element to the group.addElement
(String name, String attributeName) This method adds an element to the group.addGroup
(com.aquima.interactions.communication.GroupParticleType groupType) This method adds a subgroup to the group.This method adds a subgroup to the group.protected Iterator
<ParticleMappingTemplate> protected com.aquima.interactions.communication.GroupParticleType
protected String
protected com.aquima.interactions.communication.ds.IParticleMappingDS
This method converts the template to a data source that can be used to initialize the definition.Methods inherited from class com.aquima.interactions.test.templates.communication.ParticleMappingTemplate
addValidation, getMaxOccurs, getMinOccurs, getValidations, setMaxOccurs, setMinOccurs
Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
GroupParticleMappingTemplate
protected GroupParticleMappingTemplate(com.aquima.interactions.communication.GroupParticleType groupType, String relationName, com.aquima.interactions.foundation.report.IInitializationReport report)
-
-
Method Details
-
getGroupType
protected com.aquima.interactions.communication.GroupParticleType getGroupType() -
getRelationName
-
addGroup
public GroupParticleMappingTemplate addGroup(com.aquima.interactions.communication.GroupParticleType groupType) This method adds a subgroup to the group.- Parameters:
groupType
- The group type of the new subgroup, may not be null.- Returns:
- The created template.
-
addGroup
public GroupParticleMappingTemplate addGroup(com.aquima.interactions.communication.GroupParticleType groupType, String relationName) This method adds a subgroup to the group.- Parameters:
groupType
- The group type of the new subgroup, may not be null.relationName
- The name of the relation for children of the subgroup.- Returns:
- The created template.
-
addElement
This method adds an element to the group.- Parameters:
name
- The name of the element.- Returns:
- The template for the element.
-
addElement
This method adds an element to the group.- Parameters:
name
- The name of the element.attributeName
- The name of the attribute.- Returns:
- The template for the element.
-
addAny
This method creates a sub any particle.- Parameters:
name
- The name of the any particle, may not be null.- Returns:
- The created template.
-
addAny
This method creates a sub any particle.- Parameters:
name
- The name of the any particle, may not be null.attributeName
- The name of the attribute storing the any content.- Returns:
- The created template.
-
getFields
-
toDataSource
protected com.aquima.interactions.communication.ds.IParticleMappingDS toDataSource()Description copied from class:ParticleMappingTemplate
This method converts the template to a data source that can be used to initialize the definition.- Specified by:
toDataSource
in classParticleMappingTemplate
- Returns:
- a data source that can be used to initialize the definition.
-