Class License

java.lang.Object
org.apache.maven.model.BaseObject
org.apache.maven.model.License
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker

@Generated public class License extends BaseObject
See Also:
  • Constructor Details

    • License

      public License()
    • License

      public License(License delegate)
    • License

      public License(License delegate, BaseObject parent)
  • Method Details

    • clone

      public License clone()
      Overrides:
      clone in class Object
    • getDelegate

      public License getDelegate()
      Overrides:
      getDelegate in class BaseObject
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getDistribution

      public String getDistribution()
    • setDistribution

      public void setDistribution(String distribution)
    • getComments

      public String getComments()
    • setComments

      public void setComments(String comments)
    • getLocation

      public InputLocation getLocation(Object key)
      Description copied from interface: InputLocationTracker
      Gets the location of the specified field in the input source.
      Parameters:
      key - The key of the field, must not be null.
      Returns:
      The location of the field in the input source or null if unknown.
    • setLocation

      public void setLocation(Object key, InputLocation location)
      Description copied from interface: InputLocationTracker
      Sets the location of the specified field.
      Parameters:
      key - The key of the field, must not be null.
      location - The location of the field, may be null.
    • replace

      protected boolean replace(Object oldDelegate, Object newDelegate)
      Overrides:
      replace in class BaseObject
    • licenseToApiV4

      public static List<License> licenseToApiV4(List<License> list)
    • licenseToApiV3

      public static List<License> licenseToApiV3(List<License> list)