Class ParticleMappingTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.ParticleMappingTemplate
Direct Known Subclasses:
AnyParticleMappingTemplate, ElementParticleMappingTemplate, GroupParticleMappingTemplate

public abstract class ParticleMappingTemplate extends AbstractReportingTemplate
This class may be used to quickly initialize a model.
Since:
9.0
Author:
Jon van Leuven, Arjan Pragt
  • 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

      public FieldValidationTemplate addValidation(String type)
      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

      protected Iterator<FieldValidationTemplate> getValidations()