Class ModelProblemUtils

  extended by org.apache.maven.model.building.ModelProblemUtils

public class ModelProblemUtils
extends Object

Assists in the handling of model problems.

Benjamin Bentmann

Constructor Summary
Method Summary
static String formatLocation(ModelProblem problem, String projectId)
          Creates a string with all location details for the specified model problem.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ModelProblemUtils()
Method Detail


public static String formatLocation(ModelProblem problem,
                                    String projectId)
Creates a string with all location details for the specified model problem. If the project identifier is provided, the generated location will omit the model id and source information and only give line/column information for problems originating directly from this POM.

problem - The problem whose location should be formatted, must not be null.
projectId - The <groupId>:<artifactId>:<version> of the corresponding project, may be null to force output of model id and source.
The formatted problem location or an empty string if unknown, never null.

Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.