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
public class SchemaRelation extends AbstractSchemaValidationElement
- Since:
- 11.3
- Author:
- Voicu Moldovan
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEntity(SchemaEntity entity)
void
addValue(EntityValue entityValue)
List<SchemaEntity>
getEntities()
SchemaEntity.SchemaEntityKey
getParentReference()
Returns the reference to the instance which has this relation.String
getPropertyName()
Returns the name of the property from the domain schema which corresponds to this relation.String
getRelationName()
Returns the name of the relation from the meta model, for use when executing validations.IListValue
getValue()
protected boolean
hasValue(EntityValue entityValue)
boolean
isMultiValued()
String
toString()
-
Methods inherited from class com.aquima.interactions.communication.impl.evaluator.parser.AbstractSchemaValidationElement
addValidationMessage, getInstanceContext, getValidationList, getValidationMessages, unregisterInstanceContext
-
-
-
-
Constructor Detail
-
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 Detail
-
addEntity
protected void addEntity(SchemaEntity entity)
-
getParentReference
public SchemaEntity.SchemaEntityKey getParentReference()
Returns the reference to the instance which has this relation.- Returns:
- the reference to the parent instance, never null.
-
getPropertyName
public String 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
public String 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
public List<SchemaEntity> getEntities()
-
getValue
public IListValue getValue()
-
addValue
public void addValue(EntityValue entityValue)
-
isMultiValued
public boolean isMultiValued()
-
hasValue
protected boolean hasValue(EntityValue entityValue)
-
-