C# 클래스 NuxeoClient.Marshaller

This object is responsible for the conversions between JSON objects received from the Nuxeo server and C# Nuxeo Objects.
상속: IMarshaller
파일 보기 프로젝트 열기: nuxeo/nuxeo-dotnet-client

공개 메소드들

메소드 설명
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