org.netbeans.modules.xml.xam/1 1.18.0 1

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

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

public class Validation
extends 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.


Nested Class Summary
static class Validation.ValidationType
           
 
Constructor Summary
Validation()
           
 
Method Summary
 List<Model> getValidatedModels()
           
 List<Validator.ResultItem> getValidationResult()
           
static void stop()
           
 void validate(Model model, Validation.ValidationType type)
          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 type)
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.
type - Type of validation: complete or partial.

getValidationResult

public List<Validator.ResultItem> getValidationResult()

getValidatedModels

public List<Model> getValidatedModels()

stop

public static void stop()

org.netbeans.modules.xml.xam/1 1.18.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.