OpenTAP 9.25
API Reference
Public Member Functions | Properties | List of all members
OpenTap.Plugins.DefaultValueSerializer Class Reference

Serializer implementation for default value attributes. More...

Inheritance diagram for OpenTap.Plugins.DefaultValueSerializer:
OpenTap.TapSerializerPlugin OpenTap.ITapSerializerPlugin OpenTap.ITapPlugin

Public Member Functions

void RegisterDefaultValue (XElement elem, object value)
 Registers a default value for an XML element. More...
 
override bool Deserialize (XElement element, ITypeData t, Action< object > setter)
 Deserialization implementation.
 
override bool Serialize (XElement elem, object obj, ITypeData expectedType)
 Serialization implementation. More...
 
- Public Member Functions inherited from OpenTap.TapSerializerPlugin
 TapSerializerPlugin ()
 Creates a new TapSerializerPlugin.
 

Properties

override double Order [get]
 The order of this serializer.
 
- Properties inherited from OpenTap.TapSerializerPlugin
TapSerializer Serializer [get]
 The object facilitating Serialization or Deserialization.
 
virtual double Order [get]
 Priority of the serializer. Defines the order in which the serializers are used. Default is 0.

 
- Properties inherited from OpenTap.ITapSerializerPlugin
double Order [get]
 Priority of the serializer. Defines the order in which the serializers are used. Default is 0.

 

Additional Inherited Members

- Static Protected Attributes inherited from OpenTap.TapSerializerPlugin
static TraceSource Log = OpenTap.Log.CreateSource("Serializer")
 Log source for serializer plugins.
 

Detailed Description

Serializer implementation for default value attributes.

Member Function Documentation

◆ RegisterDefaultValue()

void OpenTap.Plugins.DefaultValueSerializer.RegisterDefaultValue ( XElement  elem,
object  value 
)
inline

Registers a default value for an XML element.

Parameters
elem
value

◆ Serialize()

override bool OpenTap.Plugins.DefaultValueSerializer.Serialize ( XElement  elem,
object  obj,
ITypeData  expectedType 
)
inlinevirtual

Serialization implementation.


Implements OpenTap.TapSerializerPlugin.

OpenTAP 9.25 API built Tue Aug 6 2024 07:49:25