public class RegistrySerializer
extends org.nuxeo.connect.update.xml.XmlWriter
| Constructor and Description |
|---|
RegistrySerializer() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Entry> |
load(File file)
De-serializes the given file into a Nuxeo packages registry
|
protected void |
read(Element element,
Map<String,Entry> registry) |
protected Map<String,Entry> |
read(File file) |
protected Entry |
readEntryElement(Element element) |
protected String |
readKeyAttr(Element element) |
protected String |
readNameAttr(Element element) |
protected String |
readPathAttr(Element element) |
protected Version |
readVersionElement(Element element) |
static void |
store(Map<String,Entry> registry,
File file)
Serializes the given registry into the given file.
|
protected void |
write(File file) |
protected void |
write(Map<String,Entry> registry) |
protected void |
writeBaseVersion(Version version) |
protected void |
writeEntry(Entry entry) |
protected void |
writeVersion(Version version) |
public static void store(Map<String,Entry> registry, File file) throws IOException
registry - file - IOExceptionpublic static Map<String,Entry> load(File file) throws org.nuxeo.connect.update.PackageException, FileNotFoundException
file - org.nuxeo.connect.update.PackageExceptionFileNotFoundExceptionprotected Map<String,Entry> read(File file) throws org.nuxeo.connect.update.PackageException, FileNotFoundException
file - org.nuxeo.connect.update.PackageExceptionFileNotFoundExceptionprotected void read(Element element, Map<String,Entry> registry) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageExceptionprotected Entry readEntryElement(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageExceptionprotected String readKeyAttr(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageExceptionprotected String readNameAttr(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageExceptionprotected String readPathAttr(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageExceptionprotected Version readVersionElement(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageExceptionprotected void writeEntry(Entry entry)
protected void writeBaseVersion(Version version)
protected void writeVersion(Version version)
protected void write(File file) throws IOException
file - Output fileIOExceptionCopyright © 2019 Nuxeo SA. All rights reserved.