org.apache.maven.model.converter
Class ModelUtils

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

public class ModelUtils
extends java.lang.Object

Utility class which features various methods associated with Maven model.

Version:
$Id: ModelUtils.java 514216 2007-03-03 18:32:26Z dennisl $
Author:
Dennis Lundberg

Constructor Summary
ModelUtils()
           
 
Method Summary
static org.apache.maven.model.Plugin findBuildPlugin(org.apache.maven.model.Model model, java.lang.String groupId, java.lang.String artifactId)
          Try to find a build plugin in a model.
static org.apache.maven.model.ReportPlugin findReportPlugin(org.apache.maven.model.Model model, java.lang.String groupId, java.lang.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 org.apache.maven.model.Plugin findBuildPlugin(org.apache.maven.model.Model model,
                                                            java.lang.String groupId,
                                                            java.lang.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 org.apache.maven.model.ReportPlugin findReportPlugin(org.apache.maven.model.Model model,
                                                                   java.lang.String groupId,
                                                                   java.lang.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-2011 Apache Software Foundation. All Rights Reserved.