NuxeoDotNetClient  1.0.0 beta
.NET Client for Nuxeo Automation and REST API
Public Member Functions | List of all members
NuxeoClient.IMarshaller Interface Reference

Defines methods to marshal and unmarshal nuxeo object to and from JSON. More...

Public Member Functions

void RegisterBO (string entityType, Type objectType)
 Registers a business object type in the marshaller. More...
 
JObject Marshal (Entity entity)
 Marshals a nuxeo Entity to JSON. More...
 
Entity UnMarshal (JToken json)
 Unmarshals a JSON object into a nuxeo Entity. More...
 

Detailed Description

Defines methods to marshal and unmarshal nuxeo object to and from JSON.

Definition at line 27 of file IMarshaller.cs.

Inheritance diagram for NuxeoClient.IMarshaller:
NuxeoClient.Marshaller

Member Function Documentation

JObject NuxeoClient.IMarshaller.Marshal ( Entity  entity)

Marshals a nuxeo Entity to JSON.

Parameters
entityThe Entity to be marshalled.
Returns
The marshalled JSON object.

Implemented in NuxeoClient.Marshaller.

void NuxeoClient.IMarshaller.RegisterBO ( string  entityType,
Type  objectType 
)

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.

Parameters
adapterTypeA string with the type of the adapter for the business object
objectTypeThe type of the business object.

Implemented in NuxeoClient.Marshaller.

Entity NuxeoClient.IMarshaller.UnMarshal ( JToken  json)

Unmarshals a JSON object into a nuxeo Entity.

Parameters
jsonThe JSON object to be unmarshalled.
Returns
The unmarshalled nuxeo Entity.

Implemented in NuxeoClient.Marshaller.