Class ParticleMappingTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.ParticleMappingTemplate
- Direct Known Subclasses:
AnyParticleMappingTemplate
,ElementParticleMappingTemplate
,GroupParticleMappingTemplate
This class may be used to quickly initialize a model.
- Since:
- 9.0
- Author:
- Jon van Leuven, Arjan Pragt
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ParticleMappingTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report) -
Method Summary
Modifier and TypeMethodDescriptionaddValidation
(String type) This method may be used to add a validation to the field.protected long
protected long
protected Iterator
<FieldValidationTemplate> void
setMaxOccurs
(long maxOccurs) This method sets the max occurs of the particle.void
setMinOccurs
(long minOccurs) This method sets the min occurs of the particle.protected abstract 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.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ParticleMappingTemplate
protected ParticleMappingTemplate(com.aquima.interactions.foundation.report.IInitializationReport report)
-
-
Method Details
-
getMinOccurs
protected long getMinOccurs() -
setMinOccurs
public void setMinOccurs(long minOccurs) This method sets the min occurs of the particle.- Parameters:
minOccurs
- The min occurs of the particle, >= 0
-
getMaxOccurs
protected long getMaxOccurs() -
setMaxOccurs
public void setMaxOccurs(long maxOccurs) This method sets the max occurs of the particle.- Parameters:
maxOccurs
- The max occurs of the particle, > 0 or -1 for unbounded
-
addValidation
This method may be used to add a validation to the field.- Parameters:
type
- The type of the validation that should be added.- Returns:
- Template representing the newly added validation.
-
toDataSource
protected abstract com.aquima.interactions.communication.ds.IParticleMappingDS toDataSource()This method converts the template to a data source that can be used to initialize the definition.- Returns:
- a data source that can be used to initialize the definition.
-
getValidations
-