Class ModelValueToManifestValueConverter
A service which converts Model
Inheritance
System.Object
ModelValueToManifestValueConverter
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.Validation.ManifestModel
Assembly: CSF.Validation.dll
Syntax
public class ModelValueToManifestValueConverter : IConvertsModelValuesToManifestValues
Constructors
| Improve this Doc View SourceModelValueToManifestValueConverter(IGetsAccessorFunction, IGetsValidatedType, IGetsManifestItemFromModelToManifestConversionContext)
Initialises an instance of Model
Declaration
public ModelValueToManifestValueConverter(IGetsAccessorFunction accessorFactory, IGetsValidatedType validatedTypeProvider, IGetsManifestItemFromModelToManifestConversionContext contextToItemConverter)
Parameters
Type | Name | Description |
---|---|---|
IGets |
accessorFactory | A factory for accessor functions. |
IGets |
validatedTypeProvider | A service that gets the validated type. |
IGets |
contextToItemConverter | A converter service for model conversion contexts. |
Methods
| Improve this Doc View SourceConvertAllValues(ModelToManifestConversionContext)
Converts all of the hierarchy of Value instances within the specified context into
an equivalent hierarchy of Manifest
Declaration
public ModelToManifestValueConversionResult ConvertAllValues(ModelToManifestConversionContext context)
Parameters
Type | Name | Description |
---|---|---|
Model |
context | A conversion context. |
Returns
Type | Description |
---|---|
Model |
A result object containing the converted manifest values. |
Exceptions
Type | Condition |
---|---|
Validator |
If the input value(s) are not valid for creating a validation manifest. |
System. |
If the |