C# Класс NuxeoClient.Marshaller

This object is responsible for the conversions between JSON objects received from the Nuxeo server and C# Nuxeo Objects.
Наследование: IMarshaller
Показать файл Открыть проект

Открытые методы

Метод Описание
Marshal ( System.Entity entity ) : Newtonsoft.Json.Linq.JObject

Marshals a nuxeo Entity to JSON.

Marshaller ( Client client ) : System

Initializes a new instance of Marshaller.

RegisterBO ( string adapterType, Type objectType ) : IMarshaller

Registers a business object type in the marshaller.

Registering a business object type in the marshaller will allow objects of this type to be marshalled and unmarshalled.

RegisterEntity ( string entityType, Type objectType ) : IMarshaller

Registers a new entity type in the marshaller.

UnMarshal ( JToken json ) : System.Entity

Unmarshals a JSON object into a nuxeo Entity.

Приватные методы

Метод Описание
UnMarshalJArray ( Newtonsoft.Json.Linq.JArray jArr ) : System.Entity
UnMarshalJObject ( Newtonsoft.Json.Linq.JObject jObj ) : System.Entity

Описание методов

Marshal() публичный Метод

Marshals a nuxeo Entity to JSON.
public Marshal ( System.Entity entity ) : Newtonsoft.Json.Linq.JObject
entity System.Entity The to be marshalled.
Результат Newtonsoft.Json.Linq.JObject

Marshaller() публичный Метод

Initializes a new instance of Marshaller.
public Marshaller ( Client client ) : System
client Client The client throw which objects are received and sent through.
Результат System

RegisterBO() публичный Метод

Registers a business object type in the marshaller.
Registering a business object type in the marshaller will allow objects of this type to be marshalled and unmarshalled.
public RegisterBO ( string adapterType, Type objectType ) : IMarshaller
adapterType string A string with the type of the adapter for the business object
objectType System.Type The type of the business object.
Результат IMarshaller

RegisterEntity() публичный Метод

Registers a new entity type in the marshaller.
public RegisterEntity ( string entityType, Type objectType ) : IMarshaller
entityType string The entity type.
objectType System.Type The type extending .
Результат IMarshaller

UnMarshal() публичный Метод

Unmarshals a JSON object into a nuxeo Entity.
public UnMarshal ( JToken json ) : System.Entity
json JToken The JSON object to be unmarshalled.
Результат System.Entity