org.netbeans.modules.xml.xam.spi
Class Validation

java.lang.Object
  extended by org.netbeans.modules.xml.xam.spi.Validation

public class Validation
extends java.lang.Object

Validation clients use this interface to start validation on a model. Validator implementation can use this to optimize computing validation results by finding which models are already validated.

Author:
Nam Nguyen, Praveen Savur

Nested Class Summary
static class Validation.ValidationType
          The type of validation.
 
Constructor Summary
Validation()
           
 
Method Summary
 java.util.List<Model> getValidatedModels()
          Retuns an unmodifiable list of validated models.
 java.util.List<Validator.ResultItem> getValidationResult()
          Returns the last validationResult.
 void validate(Model model, Validation.ValidationType validationType)
          Validates the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validation

public Validation()
Method Detail

validate

public void validate(Model model,
                     Validation.ValidationType validationType)
Validates the model. Note: Clients should call this method on a Validation instance only once. The same Validation instance should not be reused.

Parameters:
model - Contains the model for which validation has to be provided.
validationType - Type of validation: complete or partial.

getValidationResult

public java.util.List<Validator.ResultItem> getValidationResult()
Returns the last validationResult.


getValidatedModels

public java.util.List<Model> getValidatedModels()
Retuns an unmodifiable list of validated models.