Class GroupParticleMappingTemplate


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

      protected String 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

      public ElementParticleMappingTemplate addElement(String name)
      This method adds an element to the group.
      Parameters:
      name - The name of the element.
      Returns:
      The template for the element.
    • addElement

      public ElementParticleMappingTemplate addElement(String name, String attributeName)
      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

      public AnyParticleMappingTemplate addAny(String name)
      This method creates a sub any particle.
      Parameters:
      name - The name of the any particle, may not be null.
      Returns:
      The created template.
    • addAny

      public AnyParticleMappingTemplate addAny(String name, String attributeName)
      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

      protected Iterator<ParticleMappingTemplate> 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 class ParticleMappingTemplate
      Returns:
      a data source that can be used to initialize the definition.