Class License

java.lang.Object
org.owasp.dependencycheck.xml.pom.License
All Implemented Interfaces:
Serializable

@ThreadSafe public class License extends Object implements Serializable
Author:
jeremy long
See Also:
  • Constructor Details

    • License

      public License()
      Constructs a new license object.
    • License

      public License(String name, String url)
      Constructs a new license.
      Parameters:
      name - the name of the license
      url - the license URL
  • Method Details

    • getUrl

      public String getUrl()
      Get the value of URL.
      Returns:
      the value of URL
    • setUrl

      public void setUrl(String url)
      Set the value of URL.
      Parameters:
      url - new value of URL
    • getName

      public String getName()
      Get the value of name.
      Returns:
      the value of name
    • setName

      public void setName(String name)
      Set the value of name.
      Parameters:
      name - new value of name
    • hashCode

      public int hashCode()
      Generated hashCode implementation.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code
    • equals

      public boolean equals(Object obj)
      Generated equals method to perform equality check.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to check
      Returns:
      true if the objects are equal; otherwise false
    • toString

      public String toString()
      Generated toString.
      Overrides:
      toString in class Object
      Returns:
      the string representation of the license