Class DomainObjectTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.DomainObjectTemplate
Template for building a data object.
- Since:
- 9.3
- Author:
- A.Pragt
-
Constructor Summary
ConstructorsConstructorDescriptionDomainObjectTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report) -
Method Summary
Modifier and TypeMethodDescriptionaddCustomSchemaElement
(String name, String customSchemaElement) addProperty
(String name, com.aquima.interactions.foundation.DataType dataType, String attributeName) Adds a property to the object.addProperty
(String name, com.aquima.interactions.foundation.DataType dataType, String attributeName, String schemaName) Adds a property to the object.addSchemaProperty
(String name, String relationName, String schemaName) Adds a reference to another domain schema.protected Iterator
<DomainPropertyTemplate> protected com.aquima.interactions.communication.ds.IDomainObjectDS
Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
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
-
addSchemaProperty
public DomainPropertyTemplate addSchemaProperty(String name, String relationName, String schemaName) Adds a reference to another domain schema.- Parameters:
name
- the name of the propertyrelationName
- the name of the relationschemaName
- 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
-