- 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/
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDateCopyrighted()
String
getRights()
String
getRightsHolder()
boolean
hasAllFields()
Checks if has all fields (none need inherited).int
hashCode()
boolean
isEmpty()
Checks if the copyright is empty (has all null or blank fields).String
toString()
-
-
-
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
-
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).
-
-