Class Copyright

java.lang.Object
com.semanticcms.core.model.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 Details

    • 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 Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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).