Class GHLicense

    • Field Detail

      • key

        protected String key
        The name.
      • name

        protected String name
        The name.
      • featured

        protected Boolean featured
        The featured.
      • html_url

        protected String html_url
        The body.
      • description

        protected String description
        The body.
      • category

        protected String category
        The body.
      • implementation

        protected String implementation
        The body.
      • body

        protected String body
        The body.
      • required

        protected List<String> required
        The required.
      • permitted

        protected List<String> permitted
        The permitted.
      • forbidden

        protected List<String> forbidden
        The forbidden.
    • Constructor Detail

      • GHLicense

        public GHLicense()
    • Method Detail

      • getKey

        public String getKey()
        Gets key.
        Returns:
        a mnemonic for the license
      • getName

        public String getName()
        Gets name.
        Returns:
        the license name
      • isFeatured

        public Boolean isFeatured()
                           throws IOException
        Featured licenses are bold in the new repository drop-down.
        Returns:
        True if the license is featured, false otherwise
        Throws:
        IOException - the io exception
      • getDescription

        public String getDescription()
                              throws IOException
        Gets description.
        Returns:
        the description
        Throws:
        IOException - the io exception
      • getImplementation

        public String getImplementation()
                                 throws IOException
        Gets implementation.
        Returns:
        the implementation
        Throws:
        IOException - the io exception
      • populate

        protected void populate()
                         throws IOException
        Fully populate the data by retrieving missing data.

        Depending on the original API call where this object is created, it may not contain everything.

        Throws:
        IOException - the io exception
      • equals

        public boolean equals​(Object o)
        Equals.
        Overrides:
        equals in class Object
        Parameters:
        o - the o
        Returns:
        true, if successful
      • hashCode

        public int hashCode()
        Hash code.
        Overrides:
        hashCode in class Object
        Returns:
        the int
      • getRoot

        @Deprecated
        public GitHub getRoot()
        Deprecated.
        For access to the GitHub instance, use a local copy instead of pulling it out of objects.
        Get the root GitHub instance for this object.
        Returns:
        the root GitHub instance