org.apache.maven.model.validation
Class DefaultModelValidator

java.lang.Object
  extended by org.apache.maven.model.validation.DefaultModelValidator
All Implemented Interfaces:
ModelValidator

@Component(role=ModelValidator.class)
public class DefaultModelValidator
extends Object
implements ModelValidator

Version:
$Id: DefaultModelValidator.java 980725 2010-07-30 10:41:52Z bentmann $
Author:
Trygve Laugstøl

Constructor Summary
DefaultModelValidator()
           
 
Method Summary
 void validateEffectiveModel(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
          Checks the specified (effective) model for missing or invalid values.
 void validateRawModel(Model model, ModelBuildingRequest request, ModelProblemCollector problems)
          Checks the specified (raw) model for missing or invalid values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultModelValidator

public DefaultModelValidator()
Method Detail

validateRawModel

public void validateRawModel(Model model,
                             ModelBuildingRequest request,
                             ModelProblemCollector problems)
Description copied from interface: ModelValidator
Checks the specified (raw) model for missing or invalid values. The raw model is directly created from the POM file and has not been subjected to inheritance, interpolation or profile/default injection.

Specified by:
validateRawModel in interface ModelValidator
Parameters:
model - The model to validate, must not be null.
request - The model building request that holds further settings, must not be null.
problems - The container used to collect problems that were encountered, must not be null.

validateEffectiveModel

public void validateEffectiveModel(Model model,
                                   ModelBuildingRequest request,
                                   ModelProblemCollector problems)
Description copied from interface: ModelValidator
Checks the specified (effective) model for missing or invalid values. The effective model is fully assembled and has undergone inheritance, interpolation and other model operations.

Specified by:
validateEffectiveModel in interface ModelValidator
Parameters:
model - The model to validate, must not be null.
request - The model building request that holds further settings, must not be null.
problems - The container used to collect problems that were encountered, must not be null.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.