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 voidread(Element element, Map<String,Entry> registry)protected EntryreadEntryElement(Element element)protected StringreadKeyAttr(Element element)protected StringreadNameAttr(Element element)protected StringreadPathAttr(Element element)protected VersionreadVersionElement(Element element)static voidstore(Map<String,Entry> registry, File file)Serializes the given registry into the given file.protected voidwrite(File file)protected voidwrite(Map<String,Entry> registry)protected voidwriteBaseVersion(Version version)protected voidwriteEntry(Entry entry)protected voidwriteVersion(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.PackageExceptionIOException
-
read
protected Map<String,Entry> read(File file) throws org.nuxeo.connect.update.PackageException, IOException
- Throws:
org.nuxeo.connect.update.PackageExceptionIOException
-
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
-
-