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 RegistrySerializer()
public static void store(Map<String,Entry> registry, File file) throws IOException
registry
- file
- IOException
public static Map<String,Entry> load(File file) throws org.nuxeo.connect.update.PackageException, IOException
file
- org.nuxeo.connect.update.PackageException
IOException
protected Map<String,Entry> read(File file) throws org.nuxeo.connect.update.PackageException, IOException
org.nuxeo.connect.update.PackageException
IOException
protected void read(Element element, Map<String,Entry> registry) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
protected Entry readEntryElement(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
protected String readKeyAttr(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
protected String readNameAttr(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
protected String readPathAttr(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
protected Version readVersionElement(Element element) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
protected void writeEntry(Entry entry)
protected void writeBaseVersion(Version version)
protected void writeVersion(Version version)
protected void write(File file) throws IOException
file
- Output fileIOException
Copyright © 2018 Nuxeo. All rights reserved.