org.apache.maven.model.building
Class SimpleProblemCollector

java.lang.Object
  extended by org.apache.maven.model.building.SimpleProblemCollector
All Implemented Interfaces:
ModelProblemCollector

public class SimpleProblemCollector
extends Object
implements ModelProblemCollector

A simple model problem collector for testing the model building components.

Author:
Benjamin Bentmann

Constructor Summary
SimpleProblemCollector()
           
 
Method Summary
 void add(ModelProblem.Severity severity, String message, InputLocation location, Exception cause)
           
 List<String> getErrors()
           
 List<String> getFatals()
           
 List<String> getWarnings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProblemCollector

public SimpleProblemCollector()
Method Detail

getWarnings

public List<String> getWarnings()

getErrors

public List<String> getErrors()

getFatals

public List<String> getFatals()

add

public void add(ModelProblem.Severity severity,
                String message,
                InputLocation location,
                Exception cause)
Specified by:
add in interface ModelProblemCollector


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