Class LayoutSerializer
- java.lang.Object
-
- com._1c.g5.v8.dt.formnative.common.serializer.LayoutSerializer
-
public class LayoutSerializer extends Object
The serializer for the Hippo transformator parametersHippoTransformatorParameters
.
-
-
Constructor Summary
Constructors Constructor Description LayoutSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HippoLayElementBase
deserialize(byte[] xml, Map<String,HippoLayElementBase> elementByName, FontAdapter fontAdapter, Version version, String languageCode)
Deserializes the given hippo layout model from xml byte array.byte[]
serialize(HippoLayElementBase layoutElement, HippoSerializerContext context)
Serializes the given hippo layout model to xml.
-
-
-
Method Detail
-
serialize
public byte[] serialize(HippoLayElementBase layoutElement, HippoSerializerContext context)
Serializes the given hippo layout model to xml.- Parameters:
layoutElement
- the layout element, cannot benull
context
- the serialization context, cannot benull
- 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 benull
elementByName
- the elements regisrty, cannot benull
fontAdapter
- the font adapter, cannot benull
version
- the platform version, cannot benull
languageCode
- the language code of the configuration editing language, cannot benull
- Returns:
- layout element, cannot be
null
- Throws:
ParserConfigurationException
IOException
SAXException
-
-