Interface IResourceValidator
Interface for validating specific resource types
Namespace: OSGeo.MapGuide.MaestroAPI.Resource
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public interface IResourceValidator
Properties
| Improve this Doc View SourceConnection
The server connection which validation will be performed against
Declaration
IServerConnection Connection { get; set; }
Property Value
Type | Description |
---|---|
IServerConnection |
SupportedResourceAndVersion
Gets the resource type and version this validator supports
Declaration
ResourceTypeDescriptor SupportedResourceAndVersion { get; }
Property Value
Type | Description |
---|---|
ResourceTypeDescriptor |
Methods
| Improve this Doc View SourceValidate(ResourceValidationContext, IResource, Boolean)
Validats the specified resources for common issues associated with this resource type
Declaration
ValidationIssue[] Validate(ResourceValidationContext context, IResource resource, bool recurse)
Parameters
Type | Name | Description |
---|---|---|
ResourceValidationContext | context | |
IResource | resource | The resource to be validated |
System.Boolean | recurse | Indicates whether to also validate resources this resource depends on |
Returns
Type | Description |
---|---|
ValidationIssue[] |