Class RegistrySerializer


  • public class RegistrySerializer
    extends org.nuxeo.connect.update.xml.XmlWriter
    Author:
    Bogdan Stefanescu
    • Constructor Detail

      • RegistrySerializer

        public RegistrySerializer()
        Since:
        5.7
    • Method Detail

      • 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 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)