Class LayoutSerializer


  • public class LayoutSerializer
    extends Object
    The serializer for the Hippo transformator parameters HippoTransformatorParameters.
    • Constructor Detail

      • LayoutSerializer

        public LayoutSerializer()
    • Method Detail

      • serialize

        public byte[] serialize​(HippoLayElementBase layoutElement,
                                HippoSerializerContext context)
        Serializes the given hippo layout model to xml.
        Parameters:
        layoutElement - the layout element, cannot be null
        context - the serialization context, cannot be null
        Returns:
        bytes array, cannot be null
      • deserialize

        public HippoLayElementBase deserialize​(byte[] xml,
                                               Map<String,​HippoLayElementBase> elementByName,
                                               FontAdapter fontAdapter,
                                               Version version,
                                               String languageCode)
        Deserializes the given hippo layout model from xml byte array.
        Parameters:
        xml - the xml string with serialized layout model, cannot be null
        elementByName - the elements regisrty, cannot be null
        fontAdapter - the font adapter, cannot be null
        version - the platform version, cannot be null
        languageCode - the language code of the configuration editing language, cannot be null
        Returns:
        layout element, cannot be null
        Throws:
        ParserConfigurationException
        IOException
        SAXException