Class DomainPropertyTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.communication.DomainPropertyTemplate
Template for building a data property.
- Since:
- 9.3
- Author:
- A.Pragt
-
Constructor Summary
ConstructorsConstructorDescriptionDomainPropertyTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report, String name, com.aquima.interactions.foundation.DataType dataType, String attribute, String schemaName, ElementReferenceTemplate customSchemaElementRef) -
Method Summary
Modifier and TypeMethodDescriptionaddValidation
(String type) This method may be used to add a validation to the field.protected String
com.aquima.interactions.communication.ds.IElementReferenceDS
Returns the data object template.protected com.aquima.interactions.foundation.DataType
protected String
protected String
protected String
getName()
protected String
protected Iterator
<FieldValidationTemplate> protected boolean
protected boolean
void
setDocumentation
(String documentation) Sets the property's documentationvoid
setItemName
(String itemName) Sets the optional item name.void
setMultivalued
(boolean multivalued) Sets the multiValued indicator.void
setRequired
(boolean required) Sets the required indicator.protected com.aquima.interactions.communication.ds.IDomainPropertyDS
Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
DomainPropertyTemplate
public DomainPropertyTemplate(com.aquima.interactions.foundation.report.IInitializationReport report, String name, com.aquima.interactions.foundation.DataType dataType, String attribute, String schemaName, ElementReferenceTemplate customSchemaElementRef)
-
-
Method Details
-
getName
-
getDocumentation
-
setDocumentation
Sets the property's documentation- Parameters:
documentation
- The new documentation of the property
-
getDataType
protected com.aquima.interactions.foundation.DataType getDataType() -
isMultivalued
protected boolean isMultivalued() -
setMultivalued
public void setMultivalued(boolean multivalued) Sets the multiValued indicator.- Parameters:
multivalued
- The new multiValued indicator.
-
isRequired
protected boolean isRequired() -
setRequired
public void setRequired(boolean required) Sets the required indicator.- Parameters:
required
- The new required indicator.
-
setItemName
Sets the optional item name.- Parameters:
itemName
-
-
getItemName
-
getAttribute
-
toDataSource
protected com.aquima.interactions.communication.ds.IDomainPropertyDS toDataSource() -
getSchemaName
-
getDataObject
Returns the data object template.- Returns:
- The template, or null if not entity DataType.
-
addValidation
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.
-
getValidations
-
getCustomSchemaElementRef
public com.aquima.interactions.communication.ds.IElementReferenceDS getCustomSchemaElementRef()
-