nl.siegmann.epublib.domain
Class Metadata

java.lang.Object
  extended by 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

Field Summary
static String DEFAULT_LANGUAGE
           
 
Constructor Summary
Metadata()
           
 
Method Summary
 Author addAuthor(Author author)
           
 Author addContributor(Author contributor)
           
 Date addDate(Date date)
           
 String addDescription(String description)
           
 Identifier addIdentifier(Identifier identifier)
           
 String addPublisher(String publisher)
           
 String addTitle(String title)
           
 String addType(String type)
           
 List<Author> getAuthors()
           
 List<Author> getContributors()
           
 Resource getCoverImage()
          The main image used by the cover page.
 List<Date> getDates()
           
 List<String> getDescriptions()
           
 String getFirstTitle()
          Gets the first non-blank title of the book.
 String getFormat()
           
 List<Identifier> getIdentifiers()
           
 String getLanguage()
           
 Map<QName,String> getOtherProperties()
          Metadata properties not hard-coded like the author, title, etc.
 List<String> getPublishers()
           
 List<String> getRights()
           
 List<String> getSubjects()
           
 List<String> getTitles()
           
 List<String> getTypes()
           
 boolean isAutoGeneratedId()
           
 void setAuthors(List<Author> authors)
           
 void setContributors(List<Author> contributors)
           
 void setCoverImage(Resource coverImage)
           
 void setDates(List<Date> dates)
           
 void setDescriptions(List<String> descriptions)
           
 void setFormat(String format)
           
 void setIdentifiers(List<Identifier> identifiers)
           
 void setLanguage(String language)
           
 void setOtherProperties(Map<QName,String> otherProperties)
           
 void setPublishers(List<String> publishers)
           
 void setRights(List<String> rights)
           
 void setSubjects(List<String> subjects)
           
 void setTitles(List<String> titles)
           
 void setTypes(List<String> types)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LANGUAGE

public static final String DEFAULT_LANGUAGE
See Also:
Constant Field Values
Constructor Detail

Metadata

public Metadata()
Method Detail

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.