org.apache.maven.model.converter
Class ModelUtils

java.lang.Object
  extended by org.apache.maven.model.converter.ModelUtils

public class ModelUtils
extends Object

Utility class which features various methods associated with Maven model.

Version:
$Id: ModelUtils.java 661727 2008-05-30 14:21:49Z bentmann $
Author:
Dennis Lundberg

Constructor Summary
ModelUtils()
           
 
Method Summary
static Plugin findBuildPlugin(Model model, String groupId, String artifactId)
          Try to find a build plugin in a model.
static ReportPlugin findReportPlugin(Model model, String groupId, String artifactId)
          Try to find a report plugin in a model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelUtils

public ModelUtils()
Method Detail

findBuildPlugin

public static Plugin findBuildPlugin(Model model,
                                     String groupId,
                                     String artifactId)
Try to find a build plugin in a model.

Parameters:
model - Look for the build plugin in this model
groupId - The groupId for the build plugin to look for
artifactId - The artifactId for the build plugin to look for
Returns:
The requested build plugin if it exists, otherwise null

findReportPlugin

public static ReportPlugin findReportPlugin(Model model,
                                            String groupId,
                                            String artifactId)
Try to find a report plugin in a model.

Parameters:
model - Look for the report plugin in this model
groupId - The groupId for the report plugin to look for
artifactId - The artifactId for the report plugin to look for
Returns:
The requested report plugin if it exists, otherwise null


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