C# Class Org.Openengsb.Loom.CSharp.Bridge.Implementation.Communication.Json.AbstractJsonMarshaller

Inheritance: Newtonsoft.Json.JsonConverter
Mostra file Open project: openengsb/loom-csharp

Public Methods

Method Description
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Protected Methods

Method Description
CanTypeBeExtendedWithOpenEngsbModelTail ( Type objectType ) : System.Boolean

This method checks, if a Type can be extended with IOpenEngSBModel.

IsException ( Type objectType ) : bool

Checks if the type is an Exception type (Ends with Exception)

IsMapType ( Type objectType ) : bool

Checks if Type is Map (Dictaionary

Private Methods

Method Description
CreateJsonWithoutXMLIgnoreFields ( JsonWriter writer, object value, JsonSerializer serializer ) : void
TestIfNullValueProducesTheException ( JsonSerializationException jsonex ) : System.Boolean
isBasicType ( Type objectType ) : System.Boolean
isCollection ( Type objectType ) : System.Boolean
isObjectType ( Type objectType ) : System.Boolean
isOpenEngSBModelTypeImplemented ( Type objectType ) : System.Boolean

Method Details

CanTypeBeExtendedWithOpenEngsbModelTail() protected method

This method checks, if a Type can be extended with IOpenEngSBModel.
protected CanTypeBeExtendedWithOpenEngsbModelTail ( Type objectType ) : System.Boolean
objectType System.Type
return System.Boolean

IsException() protected method

Checks if the type is an Exception type (Ends with Exception)
protected IsException ( Type objectType ) : bool
objectType System.Type
return bool

IsMapType() protected method

Checks if Type is Map (Dictaionary
protected IsMapType ( Type objectType ) : bool
objectType System.Type
return bool

ReadJson() public method

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader Newtonsoft.Json.JsonReader
objectType System.Type
existingValue object
serializer Newtonsoft.Json.JsonSerializer
return object

WriteJson() public method

public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter
value object
serializer Newtonsoft.Json.JsonSerializer
return void