Class BaseLayerDefinitionValidator
A base layer definition validator class the provides the common validation logic. Because this is working against the layer definition interfaces, this common logic can apply to all versions of the layer definition schema (that implement these interfaces)
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: OSGeo.MapGuide.MaestroAPI.Resource.Validation
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public abstract class BaseLayerDefinitionValidator : IResourceValidator
Properties
| Improve this Doc View SourceConnection
The server connection which validation will be performed against
Declaration
public IServerConnection Connection { get; set; }
Property Value
Type | Description |
---|---|
IServerConnection |
SupportedResourceAndVersion
Gets the resource type and version this validator supports
Declaration
public abstract 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
public virtual ValidationIssue[] Validate(ResourceValidationContext context, IResource resource, bool recurse)
Parameters
Type | Name | Description |
---|---|---|
ResourceValidationContext | context | |
IResource | resource | |
System.Boolean | recurse |
Returns
Type | Description |
---|---|
ValidationIssue[] |
ValidateBase(ResourceValidationContext, IResource, Boolean)
Perform base validation logic
Declaration
protected ValidationIssue[] ValidateBase(ResourceValidationContext context, IResource resource, bool recurse)
Parameters
Type | Name | Description |
---|---|---|
ResourceValidationContext | context | |
IResource | resource | |
System.Boolean | recurse |
Returns
Type | Description |
---|---|
ValidationIssue[] |