java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.SchemaTemplate

public class SchemaTemplate extends AbstractReportingTemplate
This class may be used to quickly initialize a model.
Since:
9.0
Author:
Jon van Leuven, Arjan Pragt
  • Constructor Details

    • SchemaTemplate

      protected SchemaTemplate(String name, String targetNamespace, com.aquima.interactions.communication.SchemaFormType elementFormDefault, com.aquima.interactions.communication.SchemaFormType attributeFormDefault, com.aquima.interactions.foundation.report.IInitializationReport report)
  • Method Details

    • getName

      public String getName()
      This method returns the name of the schema.
      Returns:
      The name of the schema.
    • getTargetNamespace

      protected String getTargetNamespace()
    • getElementFormDefault

      protected com.aquima.interactions.communication.SchemaFormType getElementFormDefault()
    • getAttributeFormDefault

      protected com.aquima.interactions.communication.SchemaFormType getAttributeFormDefault()
    • toDatasource

      public com.aquima.interactions.communication.ds.ISchemaDS toDatasource()
    • addElement

      public ElementMappingTemplate addElement(String name)
    • addType

      public TypeMappingTemplate addType(String name)
      This method adds a global type to the schema.
      Parameters:
      name - The name of the type, may not be null.
      Returns:
      The created template.
    • addType

      public TypeMappingTemplate addType(String name, String entityName)
      This method adds a global type to the schema.
      Parameters:
      name - The name of the type, may not be null.
      entityName - The name of the entity for the type, may not be null.
      Returns:
      The created template.
    • addType

      public TypeMappingTemplate addType(String name, String entityName, com.aquima.interactions.foundation.connectivity.QualifiedName baseType)
      This method adds a global type to the schema.
      Parameters:
      name - The name of the type, may not be null.
      entityName - The name of the entity for the type, may not be null.
      baseType - The base type of the type, may not be null.
      Returns:
      The created template.s
    • getElements

      protected Iterator<ElementMappingTemplate> getElements()
    • getTypes

      protected Iterator<TypeMappingTemplate> getTypes()