Class sap.ui.core.util.serializer.SerializerModule: sap/ui/core/util/serializer/Serializer
Serializer class.
Experimental API:Since 1.15.1. The Serializer is still under construction, so some implementation details can be changed in future.
Constructor Summary
new sap.ui.core.util.serializer.Serializer(oRootControl, serializeDelegate, bSkipRoot, fnSkipAggregations, fnSkipElement)Serializer class.
Method Summary
sap.ui.core.util.serializer.Serializer.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.core.util.serializer.Serializer with name
sClassName
and enriches it with the information contained in oClassInfo
.sap.ui.core.util.serializer.Serializer.getMetadata()Returns a metadata object for class sap.ui.core.util.serializer.Serializer.
Methods borrowed from class sap.ui.base.EventProvider
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.core.util.serializer.Serializer(oRootControl, serializeDelegate, bSkipRoot, fnSkipAggregations, fnSkipElement)
Serializer class. Iterates over all controls and call a given serializer delegate.
Parameters:
{sap.ui.core.Control|sap.ui.core.UIArea} | oRootControl | the root control to serialize |
{object} | serializeDelegate | the serializer delegate. Has to implement start/middle/end methods. |
{boolean} | bSkipRoot | whether to skip the root node or not |
{function} | fnSkipAggregations | whether to skip aggregations |
{function} | fnSkipElement | whether to skip an element |
Method Detail
sap.ui.core.util.serializer.Serializer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.core.util.serializer.Serializer with name
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.base.EventProvider.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
sap.ui.core.util.serializer.Serializer.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.core.util.serializer.Serializer.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |