All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shaded.org.apache.maven.model.Prerequisites Maven / Gradle / Ivy

The newest version!
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.1.2,
// any modifications will be overwritten.
// ==============================================================

package shaded.shaded.org.apache.maven.model;

/**
 * Describes the prerequisites a project can have.
 * 
 * @version $Revision$ $Date$
 */
@SuppressWarnings( "all" )
public class Prerequisites
    implements java.io.Serializable, java.lang.Cloneable, shaded.shaded.org.apache.maven.model.InputLocationTracker
{

      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    /**
     * 
     *             For a plugin project (packaging is
     * maven-plugin), the minimum version of
     *             Maven required to use the resulting plugin.
* In Maven 2, this was also specifying the minimum * version of Maven required to build a * project, but this usage is deprecated in * Maven 3 and not checked any more: use * the Maven * Enforcer Plugin's * requireMavenVersion rule * instead. * * */ private String maven = "2.0"; /** * Field locations. */ private java.util.Map locations; /** * Field location. */ private InputLocation location; /** * Field mavenLocation. */ private InputLocation mavenLocation; //-----------/ //- Methods -/ //-----------/ /** * Method clone. * * @return Prerequisites */ public Prerequisites clone() { try { Prerequisites copy = (Prerequisites) super.clone(); if ( copy.locations != null ) { copy.locations = new java.util.LinkedHashMap( copy.locations ); } return copy; } catch ( java.lang.Exception ex ) { throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() + " does not support clone()" ).initCause( ex ); } } //-- Prerequisites clone() /** * * * @param key a key object. * @return InputLocation */ public InputLocation getLocation( Object key ) { if ( key instanceof String ) { switch ( ( String ) key ) { case "" : { return this.location; } case "maven" : { return mavenLocation; } default : { return getOtherLocation( key ); } } } else { return getOtherLocation( key ); } } //-- InputLocation getLocation( Object ) /** * Get for a plugin project (packaging is * maven-plugin), the minimum version of * Maven required to use the resulting plugin.
* In Maven 2, this was also specifying the minimum * version of Maven required to build a * project, but this usage is deprecated in * Maven 3 and not checked any more: use * the Maven * Enforcer Plugin's * requireMavenVersion rule * instead. * * @return String */ public String getMaven() { return this.maven; } //-- String getMaven() /** * * * @param key a key object. * @param location a location object. */ public void setLocation( Object key, InputLocation location ) { if ( key instanceof String ) { switch ( ( String ) key ) { case "" : { this.location = location; return; } case "maven" : { mavenLocation = location; return; } default : { setOtherLocation( key, location ); return; } } } else { setOtherLocation( key, location ); } } //-- void setLocation( Object, InputLocation ) /** * * * @param key a key object. * @param location a location object. */ public void setOtherLocation( Object key, InputLocation location ) { if ( location != null ) { if ( this.locations == null ) { this.locations = new java.util.LinkedHashMap(); } this.locations.put( key, location ); } } //-- void setOtherLocation( Object, InputLocation ) /** * * * @param key a key object. * @return InputLocation */ private InputLocation getOtherLocation( Object key ) { return ( locations != null ) ? locations.get( key ) : null; } //-- InputLocation getOtherLocation( Object ) /** * Set for a plugin project (packaging is * maven-plugin), the minimum version of * Maven required to use the resulting plugin.
* In Maven 2, this was also specifying the minimum * version of Maven required to build a * project, but this usage is deprecated in * Maven 3 and not checked any more: use * the Maven * Enforcer Plugin's * requireMavenVersion rule * instead. * * @param maven a maven object. */ public void setMaven( String maven ) { this.maven = maven; } //-- void setMaven( String ) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy