Class RegistrySerializer
- java.lang.Object
-
- org.nuxeo.connect.update.xml.XmlWriter
-
- org.nuxeo.connect.update.task.update.RegistrySerializer
-
public class RegistrySerializer extends org.nuxeo.connect.update.xml.XmlWriter
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description RegistrySerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<String,Entry>
load(File file)
De-serializes the given file into a Nuxeo packages registryprotected Map<String,Entry>
read(File file)
protected void
read(Element element, Map<String,Entry> registry)
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)
-
-
-
Method Detail
-
store
public static void store(Map<String,Entry> registry, File file) throws IOException
Serializes the given registry into the given file.- Throws:
IOException
-
load
public static Map<String,Entry> load(File file) throws org.nuxeo.connect.update.PackageException, IOException
De-serializes the given file into a Nuxeo packages registry- Returns:
- The Nuxeo packages registry described by the given file
- Throws:
org.nuxeo.connect.update.PackageException
IOException
-
read
protected Map<String,Entry> read(File file) throws org.nuxeo.connect.update.PackageException, IOException
- Throws:
org.nuxeo.connect.update.PackageException
IOException
-
read
protected void read(Element element, Map<String,Entry> registry) throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
-
readEntryElement
protected Entry readEntryElement(Element element) throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
-
readKeyAttr
protected String readKeyAttr(Element element) throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
-
readNameAttr
protected String readNameAttr(Element element) throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
-
readPathAttr
protected String readPathAttr(Element element) throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
-
readVersionElement
protected Version readVersionElement(Element element) throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
-
writeEntry
protected void writeEntry(Entry entry)
-
writeBaseVersion
protected void writeBaseVersion(Version version)
-
writeVersion
protected void writeVersion(Version version)
-
write
protected void write(File file) throws IOException
- Parameters:
file
- Output file- Throws:
IOException
- Since:
- 5.7
-
-