Class DomainSchemaParser
- java.lang.Object
-
- com.aquima.interactions.communication.impl.evaluator.parser.DomainSchemaParser
-
public class DomainSchemaParser extends Object
Parses a DataObject to the inferenceContext based on the data contract.- Since:
- 9.3
- Author:
- A.Pragt
-
-
Constructor Summary
Constructors Constructor Description DomainSchemaParser(IDomainSchemaDefinition definition, IDomainSchemaRegistry registry, IDomainSchemaValidator schemaValidator)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityValue
parse(DataValue data, InferenceContext profile, ParserContext context)
Parses the data object and returns the instance it is stored in.
-
-
-
Constructor Detail
-
DomainSchemaParser
public DomainSchemaParser(IDomainSchemaDefinition definition, IDomainSchemaRegistry registry, IDomainSchemaValidator schemaValidator)
Creates a new instance.- Parameters:
definition
- the data contract, not null.
-
-
Method Detail
-
parse
public EntityValue parse(DataValue data, InferenceContext profile, ParserContext context) throws ContractParseException, FieldValidationException
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.
- Throws:
ContractParseException
- Is thrown when a parse error occurred.FieldValidationException
- Is thrown when a field validation isn't met.
-
-