 | ValidatorService Class |
This service is defined for the validation of an AML document. Additionally the
service can also be used to repair specific invalid properties in a document.
Inheritance Hierarchy Namespace: Aml.Engine.ServicesAssembly: Aml.Engine.Services (in Aml.Engine.Services.dll) Version: 3.2
Syntaxpublic class ValidatorService : IValidator<ValidationElement>,
IValidator, IAMLService
Public Class ValidatorService
Implements IValidator(Of ValidationElement), IValidator,
IAMLService
public ref class ValidatorService : IValidator<ValidationElement^>,
IValidator, IAMLService
The ValidatorService type exposes the following members.
Methods | Name | Description |
---|
 | IDValidation |
Validates the ID of a CAEX object. IDs of CAEX objects shall be unique.
|
 | NameValidation |
Validates a name of a CAEX object. Names of CAEX classes or types (RoleClasses, InterfaceClasses,
SystemUnitClasses and AttributeTypes), Attributes,
Libraries and CAEX InstanceHierarchies shall be unique across its siblings or across all child elements of the same
CAEX parent element over its life time.
This shall assure that referencing a library, a class, a type or an attribute by its path delivers a unique result.
|
  | Register |
Registers a new validator service.
|
 | Repair |
Repairs the specified validated element.
|
  | UnRegister |
Unregisters the validator service.
|
 | ValidateAliasReferences |
Validates the alias references and returns the validation result describing possible repair options. The
ValidationElement provides detailed information about available Repair
Options and an additional Information Text.
|
 | ValidateAll(CAEXDocument, Boolean) |
Get Validation Information for all elements in the specified document, which have validation issues. The
ValidationElement provides detailed information about available Repair
Options and an additional Information Text.
|
 | ValidateAll(CAEXDocument, AutomationMLContainer, Boolean) |
Get Validation Information for all elements in the specified document, which have validation issues. The
IValidationResult provides detailed information about available Repair
Options and an additional Information Text. This method should be used, if the Document is loaded from an
AutomationML container. The Validation service will check validity of external references which are packed
parts of the container.
|
 | ValidateAllWithoutStrictID |
Get Validation Information for all elements in the specified document, which have validation issues. The
ValidationElement provides detailed information about available Repair
Options and an additional Information Text.
|
Top
See Also