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.
See Also:
  • Field Details

  • Constructor Details

    • Metadata

      public Metadata()
  • Method Details

    • isAutoGeneratedId

      public boolean isAutoGeneratedId()
    • getOtherProperties

      public Map<QName,String> getOtherProperties()
      Metadata properties not hard-coded like the author, title, etc.
      Returns:
      Metadata properties not hard-coded like the author, title, etc.
    • 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:
      the first non-blank title of the book.
    • 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)
    • getMetaAttribute

      public String getMetaAttribute(String name)
    • setMetaAttributes

      public void setMetaAttributes(Map<String,String> metaAttributes)