Class SchemaRelation
java.lang.Object
com.aquima.interactions.communication.impl.evaluator.parser.AbstractSchemaValidationElement
com.aquima.interactions.communication.impl.evaluator.parser.SchemaRelation
- All Implemented Interfaces:
Serializable
- Since:
- 11.3
- Author:
- Voicu Moldovan
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SchemaRelation
(SchemaEntity.SchemaEntityKey parentReference, IDomainPropertyDefinition propertyDefinition, IValue value, InstanceContext instanceContext) protected
SchemaRelation
(SchemaEntity.SchemaEntityKey parentReference, String propertyName, String relationName, IValue value, IFieldValidationDefinition[] validationList, InstanceContext instanceContext, boolean multiValued) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEntity
(SchemaEntity entity) void
addValue
(EntityValue entityValue) Returns the reference to the instance which has this relation.Returns the name of the property from the domain schema which corresponds to this relation.Returns the name of the relation from the meta model, for use when executing validations.getValue()
protected boolean
hasValue
(EntityValue entityValue) boolean
toString()
Methods inherited from class com.aquima.interactions.communication.impl.evaluator.parser.AbstractSchemaValidationElement
addValidationMessage, getInstanceContext, getValidationList, getValidationMessages, unregisterInstanceContext
-
Constructor Details
-
SchemaRelation
protected SchemaRelation(SchemaEntity.SchemaEntityKey parentReference, IDomainPropertyDefinition propertyDefinition, IValue value, InstanceContext instanceContext) -
SchemaRelation
protected SchemaRelation(SchemaEntity.SchemaEntityKey parentReference, String propertyName, String relationName, IValue value, IFieldValidationDefinition[] validationList, InstanceContext instanceContext, boolean multiValued)
-
-
Method Details
-
addEntity
-
getParentReference
Returns the reference to the instance which has this relation.- Returns:
- the reference to the parent instance, never null.
-
getPropertyName
Returns the name of the property from the domain schema which corresponds to this relation.- Returns:
- the corresponding property name from the domain schema, never null.
-
getRelationName
Returns the name of the relation from the meta model, for use when executing validations.- Returns:
- the relation name from the meta model, never null.
-
getEntities
-
getValue
-
addValue
-
isMultiValued
public boolean isMultiValued() -
hasValue
-
toString
-