public class ModelProblemUtils
extends java.lang.Object
| Constructor and Description |
|---|
ModelProblemUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatLocation(ModelProblem problem,
java.lang.String projectId)
Creates a string with all location details for the specified model problem.
|
(package private) static java.lang.String |
toId(Model model) |
(package private) static java.lang.String |
toId(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version)
Creates a user-friendly artifact id from the specified coordinates.
|
(package private) static java.lang.String |
toPath(Model model) |
(package private) static java.lang.String |
toSourceHint(Model model)
Creates a user-friendly source hint for the specified model.
|
static java.lang.String toSourceHint(Model model)
model - The model to create a source hint for, may be null.null.static java.lang.String toPath(Model model)
static java.lang.String toId(Model model)
static java.lang.String toId(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version)
groupId - The group id, may be null.artifactId - The artifact id, may be null.version - The version, may be null.null.public static java.lang.String formatLocation(ModelProblem problem, java.lang.String projectId)
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.null.