Package nl.siegmann.epublib.epub
Class PackageDocumentMetadataReader
- java.lang.Object
-
- nl.siegmann.epublib.epub.PackageDocumentBase
-
- nl.siegmann.epublib.epub.PackageDocumentMetadataReader
-
class PackageDocumentMetadataReader extends PackageDocumentBase
Reads the package document metadata. In its own separate class because the PackageDocumentReader became a bit large and unwieldy.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nl.siegmann.epublib.epub.PackageDocumentBase
PackageDocumentBase.DCAttributes, PackageDocumentBase.DCTags, PackageDocumentBase.OPFAttributes, PackageDocumentBase.OPFTags, PackageDocumentBase.OPFValues
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Loggerlog-
Fields inherited from class nl.siegmann.epublib.epub.PackageDocumentBase
BOOK_ID_ID, dateFormat, NAMESPACE_DUBLIN_CORE, NAMESPACE_OPF, PREFIX_DUBLIN_CORE, PREFIX_OPF
-
-
Constructor Summary
Constructors Constructor Description PackageDocumentMetadataReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static AuthorcreateAuthor(org.w3c.dom.Element authorElement)private static java.lang.StringgetBookIdId(org.w3c.dom.Document document)private static java.util.List<Author>readAuthors(java.lang.String authorTag, org.w3c.dom.Element metadataElement)private static java.util.List<Author>readContributors(org.w3c.dom.Element metadataElement)private static java.util.List<Author>readCreators(org.w3c.dom.Element metadataElement)private static java.util.List<Date>readDates(org.w3c.dom.Element metadataElement)private static java.util.List<Identifier>readIdentifiers(org.w3c.dom.Element metadataElement)static MetadatareadMetadata(org.w3c.dom.Document packageDocument)private static java.util.Map<java.lang.String,java.lang.String>readMetaProperties(org.w3c.dom.Element metadataElement)consumes meta tags that have a property attribute as defined in the standard.private static java.util.Map<javax.xml.namespace.QName,java.lang.String>readOtherProperties(org.w3c.dom.Element metadataElement)consumes meta tags that have a property attribute as defined in the standard.
-
-
-
Method Detail
-
readMetadata
public static Metadata readMetadata(org.w3c.dom.Document packageDocument)
-
readOtherProperties
private static java.util.Map<javax.xml.namespace.QName,java.lang.String> readOtherProperties(org.w3c.dom.Element metadataElement)
consumes meta tags that have a property attribute as defined in the standard. For example: <meta property="rendition:layout">pre-paginated</meta>- Parameters:
metadataElement-- Returns:
-
readMetaProperties
private static java.util.Map<java.lang.String,java.lang.String> readMetaProperties(org.w3c.dom.Element metadataElement)
consumes meta tags that have a property attribute as defined in the standard. For example: <meta property="rendition:layout">pre-paginated</meta>- Parameters:
metadataElement-- Returns:
-
getBookIdId
private static java.lang.String getBookIdId(org.w3c.dom.Document document)
-
readCreators
private static java.util.List<Author> readCreators(org.w3c.dom.Element metadataElement)
-
readContributors
private static java.util.List<Author> readContributors(org.w3c.dom.Element metadataElement)
-
readAuthors
private static java.util.List<Author> readAuthors(java.lang.String authorTag, org.w3c.dom.Element metadataElement)
-
readDates
private static java.util.List<Date> readDates(org.w3c.dom.Element metadataElement)
-
createAuthor
private static Author createAuthor(org.w3c.dom.Element authorElement)
-
readIdentifiers
private static java.util.List<Identifier> readIdentifiers(org.w3c.dom.Element metadataElement)
-
-