Class License


  • public class License
    extends java.lang.Object
    A License is a container to save the license information.
    See Also:
    Repository
    • Constructor Summary

      Constructors 
      Constructor Description
      License()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static License apache()
      The default Apache License.
      java.lang.String getId()
      Returns the identifier of the license.
      java.lang.String getName()
      Returns the name of the license.
      java.lang.String getUrl()
      Returns the url of the license.
      void setId​(java.lang.String id)
      Sets the identifier of the license.
      void setName​(java.lang.String name)
      Sets the name of the license.
      void setUrl​(java.lang.String url)
      Sets the url of the license.
      • Methods inherited from class java.lang.Object

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

      • License

        public License()
    • Method Detail

      • apache

        public static License apache()
        The default Apache License.
        Returns:
        Apache license
      • getName

        public java.lang.String getName()
        Returns the name of the license.
        Returns:
        the name of the license
      • setName

        public void setName​(java.lang.String name)
        Sets the name of the license.
        Parameters:
        name - the name of the license
      • getUrl

        public java.lang.String getUrl()
        Returns the url of the license.
        Returns:
        the url of the license
      • setUrl

        public void setUrl​(java.lang.String url)
        Sets the url of the license.
        Parameters:
        url - the url of the license;
      • setId

        public void setId​(java.lang.String id)
        Sets the identifier of the license.
        Parameters:
        id - the identifier of the license.
      • getId

        public java.lang.String getId()
        Returns the identifier of the license.
        Returns:
        the identifier of the license