Package com.priint.pubserver.metadata
DocumentMetadata interfaces and classes
The package com.priint.pubserver.metadata and sub packages
base, element,
group, item,
note, placeholder and
spread define a set of interfaces for DocumentMetadata files.
In each of these packages (except for base), there is also a XXXDocument class, which is the JAXB
implementation for a specific document type (namely ElementDocument
for the elements.xml file, GroupDocument for the groups.xml
file, ItemDocument for the items.xml file,
NoteDocument for the notes.xml file,
PlaceholderDocument for the placeholder.xml file and
SpreadDocument for the spreads.xml file.
Applications should usually refer to the interfaces, not to the JAXB implementations in the xml
packages.
Example: to unmarshal notes from a meta data archive, you could use the following code:
String filename = "notes.xml";
com.priint.pubserver.metadata.note.NoteDocument noteDocument =
XMLUtils.objectFromXML(new FileReader(new File(filename)), NoteDocument.class);
List<Note> notes = noteDocument.getNotes();
-
Interface Summary Interface Description File Interface for the manifest-file XML typeGenerator Interface for the manifest-generator XML type -
Class Summary Class Description ManifestDocument JAXB class for the manifest XML document type.