public class TLcdDataModelMappingValidator extends Object
The responsibility of this class is to validate a TLcdDataModelMapping
.
Given such a mapping, instances of this class perform a number of checks to see
if the mapping is type safe and complete.
This class is typically used during development when a data model mapping is created. It helps to find out where the mapping is still incomplete. This is especially useful when larger models need to be transformed. In general it doesn't make much sense to use this class in production code.
TLcdDataModelMapping
Modifier and Type | Class and Description |
---|---|
static class |
TLcdDataModelMappingValidator.IncompatibleType
TransformationIssue that indicates that the source property can't be transformed into the target property
because no type transformation can be found to transform the source property's type into the
target property's type.
|
static class |
TLcdDataModelMappingValidator.IncompleteSourceType
TransformationIssue that indicates that the source type can't be completely mapped to the
target type.
|
static class |
TLcdDataModelMappingValidator.LeftOverTargetType
TransformationIssue that contains a collection of type of the target data model for which no
corresponding source type exists.
|
static class |
TLcdDataModelMappingValidator.MissingTargetType
TransformationIssue that indicates that no transformation is defined for the given source type.
|
static class |
TLcdDataModelMappingValidator.TransformationIssue
Abstract representation of an issue with the data model transformation.
|
Constructor and Description |
---|
TLcdDataModelMappingValidator(TLcdDataModelMapping aTransformation) |
Modifier and Type | Method and Description |
---|---|
List<TLcdDataModelMappingValidator.TransformationIssue> |
validate() |
public TLcdDataModelMappingValidator(TLcdDataModelMapping aTransformation)
public List<TLcdDataModelMappingValidator.TransformationIssue> validate()