Class Prerequisites

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, InputLocationTracker

    public class Prerequisites
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
    Describes the prerequisites a project can have.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Prerequisites()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Prerequisites clone()
      Method clone.
      InputLocation getLocation​(java.lang.Object key)
      Gets the location of the specified field in the input source.
      java.lang.String getMaven()
      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.
      void setLocation​(java.lang.Object key, InputLocation location)
      Sets the location of the specified field.
      void setMaven​(java.lang.String maven)
      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.
      void setOtherLocation​(java.lang.Object key, InputLocation location)  
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Prerequisites

        public Prerequisites()
    • Method Detail

      • clone

        public Prerequisites clone()
        Method clone.
        Overrides:
        clone in class java.lang.Object
        Returns:
        Prerequisites
      • getMaven

        public java.lang.String getMaven()
        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.
        Returns:
        String
      • setOtherLocation

        public void setOtherLocation​(java.lang.Object key,
                                     InputLocation location)
        Parameters:
        key - a key object.
        location - a location object.
      • setMaven

        public void setMaven​(java.lang.String maven)
        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.
        Parameters:
        maven - a maven object.