Package nl.siegmann.epublib.domain
Class Metadata
java.lang.Object
nl.siegmann.epublib.domain.Metadata
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprivate booleanstatic final Stringprivate Stringprivate List<Identifier> private Stringprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContributor(Author contributor) addDescription(String description) addIdentifier(Identifier identifier) addPublisher(String publisher) getDates()Gets the first non-blank title of the book.getMetaAttribute(String name) Metadata properties not hard-coded like the author, title, etc.getTypes()booleanvoidsetAuthors(List<Author> authors) voidsetContributors(List<Author> contributors) voidvoidsetDescriptions(List<String> descriptions) voidvoidsetIdentifiers(List<Identifier> identifiers) voidsetLanguage(String language) voidsetMetaAttributes(Map<String, String> metaAttributes) voidsetOtherProperties(Map<QName, String> otherProperties) voidsetPublishers(List<String> publishers) voidvoidsetSubjects(List<String> subjects) voidvoid
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
DEFAULT_LANGUAGE
- See Also:
-
autoGeneratedId
private boolean autoGeneratedId -
authors
-
contributors
-
dates
-
language
-
otherProperties
-
rights
-
titles
-
identifiers
-
subjects
-
format
-
types
-
descriptions
-
publishers
-
metaAttributes
-
-
Constructor Details
-
Metadata
public Metadata()
-
-
Method Details
-
isAutoGeneratedId
public boolean isAutoGeneratedId() -
getOtherProperties
Metadata properties not hard-coded like the author, title, etc.- Returns:
- Metadata properties not hard-coded like the author, title, etc.
-
setOtherProperties
-
addDate
-
getDates
-
setDates
-
addAuthor
-
getAuthors
-
setAuthors
-
addContributor
-
getContributors
-
setContributors
-
getLanguage
-
setLanguage
-
getSubjects
-
setSubjects
-
setRights
-
getRights
-
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
-
setTitles
-
getTitles
-
addPublisher
-
setPublishers
-
getPublishers
-
addDescription
-
setDescriptions
-
getDescriptions
-
addIdentifier
-
setIdentifiers
-
getIdentifiers
-
setFormat
-
getFormat
-
addType
-
getTypes
-
setTypes
-
getMetaAttribute
-
setMetaAttributes
-