nl.siegmann.epublib.domain
Class Metadata
java.lang.Object
nl.siegmann.epublib.domain.Metadata
- All Implemented Interfaces:
- Serializable
public class Metadata
- extends Object
- implements Serializable
A Book's collection of Metadata.
In the future it should contain all Dublin Core attributes, for now it contains a set of often-used ones.
- Author:
- paul
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_LANGUAGE
public static final String DEFAULT_LANGUAGE
- See Also:
- Constant Field Values
Metadata
public Metadata()
isAutoGeneratedId
public boolean isAutoGeneratedId()
getOtherProperties
public Map<QName,String> getOtherProperties()
- Metadata properties not hard-coded like the author, title, etc.
- Returns:
setOtherProperties
public void setOtherProperties(Map<QName,String> otherProperties)
addDate
public Date addDate(Date date)
getDates
public List<Date> getDates()
setDates
public void setDates(List<Date> dates)
addAuthor
public Author addAuthor(Author author)
getAuthors
public List<Author> getAuthors()
setAuthors
public void setAuthors(List<Author> authors)
addContributor
public Author addContributor(Author contributor)
getContributors
public List<Author> getContributors()
setContributors
public void setContributors(List<Author> contributors)
getLanguage
public String getLanguage()
setLanguage
public void setLanguage(String language)
getSubjects
public List<String> getSubjects()
setSubjects
public void setSubjects(List<String> subjects)
setRights
public void setRights(List<String> rights)
getRights
public List<String> getRights()
getFirstTitle
public String getFirstTitle()
- Gets the first non-blank title of the book.
Will return "" if no title found.
- Returns:
addTitle
public String addTitle(String title)
setTitles
public void setTitles(List<String> titles)
getTitles
public List<String> getTitles()
addPublisher
public String addPublisher(String publisher)
setPublishers
public void setPublishers(List<String> publishers)
getPublishers
public List<String> getPublishers()
addDescription
public String addDescription(String description)
setDescriptions
public void setDescriptions(List<String> descriptions)
getDescriptions
public List<String> getDescriptions()
addIdentifier
public Identifier addIdentifier(Identifier identifier)
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
getIdentifiers
public List<Identifier> getIdentifiers()
setFormat
public void setFormat(String format)
getFormat
public String getFormat()
addType
public String addType(String type)
getTypes
public List<String> getTypes()
setTypes
public void setTypes(List<String> types)
getCoverImage
public Resource getCoverImage()
- The main image used by the cover page.
- Returns:
setCoverImage
public void setCoverImage(Resource coverImage)
Copyright © 2009-2011. All Rights Reserved.