Class DomainSchemaParser
java.lang.Object
com.aquima.interactions.communication.impl.evaluator.parser.DomainSchemaParser
Parses a DataObject to the inferenceContext based on the data contract.
- Since:
- 9.3
- Author:
- A.Pragt
-
Constructor Summary
ConstructorsConstructorDescriptionDomainSchemaParser
(IDomainSchemaDefinition definition, IDomainSchemaRegistry registry, IDomainSchemaValidator schemaValidator) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionparse
(DataValue data, InferenceContext profile, ParserContext context) Parses the data object and returns the instance it is stored in.
-
Constructor Details
-
DomainSchemaParser
public DomainSchemaParser(IDomainSchemaDefinition definition, IDomainSchemaRegistry registry, IDomainSchemaValidator schemaValidator) Creates a new instance.- Parameters:
definition
- the data contract, not null.
-
-
Method Details
-
parse
Parses the data object and returns the instance it is stored in.- Parameters:
data
- The data object, not null.profile
- The profile to use while parsing, not null.context
- The parse context, not null.- Returns:
- Reference to the created root instance, never null.
-