Class AbstractTypeMapper
Inheritance
System.Object
AbstractTypeMapper
Assembly: Steeltoe.Messaging.MessagingBase.dll
Syntax
public abstract class AbstractTypeMapper : object
Fields
|
Edit this page
View Source
DEFAULT_CLASSID_FIELD_NAME
Declaration
public const string DEFAULT_CLASSID_FIELD_NAME = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
DEFAULT_CONTENT_CLASSID_FIELD_NAME
Declaration
public const string DEFAULT_CONTENT_CLASSID_FIELD_NAME = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
DEFAULT_KEY_CLASSID_FIELD_NAME
Declaration
public const string DEFAULT_KEY_CLASSID_FIELD_NAME = null
Field Value
Type |
Description |
System.String |
|
Properties
|
Edit this page
View Source
ClassIdFieldName
Declaration
public string ClassIdFieldName { get; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
ContentClassIdFieldName
Declaration
public string ContentClassIdFieldName { get; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
IdClassMapping
Declaration
public Dictionary<string, Type> IdClassMapping { get; }
Property Value
Type |
Description |
Dictionary<System.String, Type> |
|
|
Edit this page
View Source
KeyClassIdFieldName
Declaration
public string KeyClassIdFieldName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
Declaration
protected virtual void AddHeader(IMessageHeaders headers, string headerName, Type clazz)
Parameters
Type |
Name |
Description |
IMessageHeaders |
headers |
|
System.String |
headerName |
|
Type |
clazz |
|
|
Edit this page
View Source
Declaration
protected Type FromInferredTypeHeader(IMessageHeaders headers)
Parameters
Returns
|
Edit this page
View Source
GetClassName(Type)
Declaration
protected virtual string GetClassName(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetContentType(Type)
Declaration
protected virtual Type GetContentType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Edit this page
View Source
GetKeyType(Type)
Declaration
protected virtual Type GetKeyType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
|
Edit this page
View Source
Declaration
protected virtual bool HasInferredTypeHeader(IMessageHeaders headers)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
IsContainerType(Type)
Declaration
protected virtual bool IsContainerType(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
protected virtual string RetrieveHeader(IMessageHeaders headers, string headerName)
Parameters
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
protected virtual string RetrieveHeaderAsString(IMessageHeaders headers, string headerName)
Parameters
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
SetIdClassMapping(Dictionary<String, Type>)
Declaration
public void SetIdClassMapping(Dictionary<string, Type> mapping)
Parameters
Type |
Name |
Description |
Dictionary<System.String, Type> |
mapping |
|