public class DefaultArrangementSettingsSerializer extends java.lang.Object implements ArrangementSettingsSerializer
ArrangementSettingsSerializer
which knows how to handle built-in arrangement tokens
and can be used as a base for custom serializer implementation
.Modifier and Type | Class and Description |
---|---|
static interface |
DefaultArrangementSettingsSerializer.Mixin |
static class |
DefaultArrangementSettingsSerializer.MutableMixin |
Constructor and Description |
---|
DefaultArrangementSettingsSerializer(DefaultArrangementSettingsSerializer.Mixin mixin,
StdArrangementSettings defaultSettings) |
DefaultArrangementSettingsSerializer(StdArrangementSettings defaultSettings) |
Modifier and Type | Method and Description |
---|---|
ArrangementSettings |
deserialize(Element element)
Allows to provide custom settings deserialization logic.
|
Element |
serialize(ArrangementMatchRule rule) |
Element |
serialize(ArrangementSectionRule section) |
void |
serialize(ArrangementSettings s,
Element holder)
Allows to provide custom settings serialization logic.
|
public DefaultArrangementSettingsSerializer(StdArrangementSettings defaultSettings)
public DefaultArrangementSettingsSerializer(DefaultArrangementSettingsSerializer.Mixin mixin, StdArrangementSettings defaultSettings)
public void serialize(ArrangementSettings s, Element holder)
ArrangementSettingsSerializer
ArrangementSettingsSerializer.deserialize(Element)
.
Note: it's save to return null
if current rearranger doesn't use custom settings (settings over those
located at the 'intellij.platform.lang'
/'intellij.platform.lang.impl'
modules).serialize
in interface ArrangementSettingsSerializer
s
- settings to serializeholder
- element to hold serialized settingspublic ArrangementSettings deserialize(Element element)
ArrangementSettingsSerializer
ArrangementSettingsSerializer.serialize(ArrangementSettings, Element)
.
Note: it's save to return null
if current rearranger doesn't use custom settings (settings over those
located at the 'intellij.platform.lang'
/'intellij.platform.lang.impl'
modules).deserialize
in interface ArrangementSettingsSerializer
element
- serialized settings holderpublic Element serialize(ArrangementMatchRule rule)
public Element serialize(ArrangementSectionRule section)