Class DomainObjectTemplate

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

public class DomainObjectTemplate extends AbstractReportingTemplate
Template for building a data object.
Since:
9.3
Author:
A.Pragt
  • Constructor Details

    • DomainObjectTemplate

      public DomainObjectTemplate(com.aquima.interactions.foundation.report.IInitializationReport report)
  • Method Details

    • addProperty

      public DomainPropertyTemplate addProperty(String name, com.aquima.interactions.foundation.DataType dataType, String attributeName)
      Adds a property to the object.
      Parameters:
      name - The name of the property, not null.
      dataType - The datatype of the property, not null.
      attributeName - The attribute of the property, not null.
      Returns:
      The template for modifying the property, never null.
    • addProperty

      public DomainPropertyTemplate addProperty(String name, com.aquima.interactions.foundation.DataType dataType, String attributeName, String schemaName)
      Adds a property to the object.
      Parameters:
      name - The name of the property, not null.
      dataType - The datatype of the property, not null.
      attributeName - The attribute of the property, not null.
      schemaName - The name of the referenced schema, may be null.
      Returns:
      The template for modifying the property, never null.
    • addCustomSchemaElement

      public ElementReferenceTemplate addCustomSchemaElement(String name, String customSchemaElement)
    • addSchemaProperty

      public DomainPropertyTemplate addSchemaProperty(String name, String relationName, String schemaName)
      Adds a reference to another domain schema.
      Parameters:
      name - the name of the property
      relationName - the name of the relation
      schemaName - the name of the referenced domain schema
      Returns:
      The template for modifying the property, never null.
    • toDataSource

      protected com.aquima.interactions.communication.ds.IDomainObjectDS toDataSource()
    • getProperties

      protected Iterator<DomainPropertyTemplate> getProperties()