org.netbeans.modules.xml.xam.spi
Interface Validator

All Known Implementing Classes:
XsdBasedValidator

public interface Validator

Common interface for validation services on models and components. Typical implementation would implement a domain-specific subtype and publish the implemenation through META-INF/services. Typical client would lookup and select applicable services for the validation target model.

Author:
Nam Nguyen, Ritesh, Praveen Savur

Nested Class Summary
static class Validator.ResultItem
           
static class Validator.ResultType
           
 
Method Summary
 java.lang.String getName()
          Returns name of this validation service.
 ValidationResult validate(Model model, Validation validation, Validation.ValidationType validationType)
          Validates given model.
 

Method Detail

getName

java.lang.String getName()
Returns name of this validation service.

Returns:
Name of the validator.

validate

ValidationResult validate(Model model,
                          Validation validation,
                          Validation.ValidationType validationType)
Validates given model.

Parameters:
validationType - Type of validation. Complete(slow) or partial(fast).
model - model to validate.
validation - reference to the validation context.
Returns:
ValidationResult.