Class Copyright


  • public class Copyright
    extends Object
    The copyright info for a book, a page, or a set of pages. Expected to be used with Dublin Core Terms:
    • http://stackoverflow.com/questions/6665312/is-the-copyright-meta-tag-valid-in-html5
    • https://wiki.whatwg.org/wiki/MetaExtensions
    • http://dublincore.org/documents/dcmi-terms/
    • Constructor Detail

      • Copyright

        public Copyright​(String rightsHolder,
                         String rights,
                         String dateCopyrighted)
        Parameters:
        rightsHolder - The rights holder, "" means none and null will inherit.
        rights - The rights, "" means none and null will inherit.
        dateCopyrighted - The date copyrighted, "" means none and null will inherit.
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getRightsHolder

        public String getRightsHolder()
      • getRights

        public String getRights()
      • getDateCopyrighted

        public String getDateCopyrighted()
      • hasAllFields

        public boolean hasAllFields()
        Checks if has all fields (none need inherited).
      • isEmpty

        public boolean isEmpty()
        Checks if the copyright is empty (has all null or blank fields).