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

Inheritance: Newtonsoft.Json.JsonConverter
Afficher le fichier Open project: openengsb/loom-csharp

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

IsException() protected méthode

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

IsMapType() protected méthode

Checks if Type is Map (Dictaionary
protected IsMapType ( Type objectType ) : bool
objectType System.Type
Résultat bool

ReadJson() public méthode

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

WriteJson() public méthode

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