C# 클래스 NJsonApi.Serialization.TransformationHelper

파일 보기 프로젝트 열기: jacek-gorgon/NJsonApi 1 사용 예제들

공개 메소드들

메소드 설명
AppendIncludedRepresentationRecursive ( object resource, IResourceMapping resourceMapping, List includedList, HashSet alreadyVisitedObjects, Context context ) : void
AssureAllMappingsRegistered ( Type type, Configuration config ) : void
ChooseProperResourceRepresentation ( object resource, IEnumerable representationList ) : IResourceRepresentation
CreateIncludedRepresentations ( List primaryResourceList, IResourceMapping resourceMapping, Context context ) : List
CreateRelationships ( object objectGraph, string parentId, IResourceMapping resourceMapping, Context context ) : IRelationship>.Dictionary
CreateResourceRepresentation ( object objectGraph, IResourceMapping resourceMapping, Context context ) : SingleResource
GetCollection ( JToken value, IRelationshipMapping mapping ) : object
GetMetadata ( object objectGraph ) : object>.Dictionary
GetObjectType ( object objectGraph ) : Type
GetValue ( JToken value, Type returnType ) : object
HandleException ( Exception exception ) : CompoundDocument
HandleHttpError ( HttpError error ) : CompoundDocument
UnifyObjectsToList ( object nestedObject ) : List
UnwrapResourceObject ( object objectGraph ) : object
VerifyTypeSupport ( Type innerObjectType ) : void

비공개 메소드들

메소드 설명
CreateLinks ( IResourceMapping resourceMapping, UrlBuilder urlBuilder, SingleResource result ) : ILink>.Dictionary
GetUrlFromTemplate ( string urlTemplate, string routePrefix, string parentId, string relatedId = null ) : ILink

메소드 상세

AppendIncludedRepresentationRecursive() 공개 메소드

public AppendIncludedRepresentationRecursive ( object resource, IResourceMapping resourceMapping, List includedList, HashSet alreadyVisitedObjects, Context context ) : void
resource object
resourceMapping IResourceMapping
includedList List
alreadyVisitedObjects HashSet
context Context
리턴 void

AssureAllMappingsRegistered() 공개 메소드

public AssureAllMappingsRegistered ( Type type, Configuration config ) : void
type System.Type
config Configuration
리턴 void

ChooseProperResourceRepresentation() 공개 메소드

public ChooseProperResourceRepresentation ( object resource, IEnumerable representationList ) : IResourceRepresentation
resource object
representationList IEnumerable
리턴 IResourceRepresentation

CreateIncludedRepresentations() 공개 메소드

public CreateIncludedRepresentations ( List primaryResourceList, IResourceMapping resourceMapping, Context context ) : List
primaryResourceList List
resourceMapping IResourceMapping
context Context
리턴 List

CreateRelationships() 공개 메소드

public CreateRelationships ( object objectGraph, string parentId, IResourceMapping resourceMapping, Context context ) : IRelationship>.Dictionary
objectGraph object
parentId string
resourceMapping IResourceMapping
context Context
리턴 IRelationship>.Dictionary

CreateResourceRepresentation() 공개 메소드

public CreateResourceRepresentation ( object objectGraph, IResourceMapping resourceMapping, Context context ) : SingleResource
objectGraph object
resourceMapping IResourceMapping
context Context
리턴 NJsonApi.Serialization.Representations.Resources.SingleResource

GetCollection() 공개 메소드

public GetCollection ( JToken value, IRelationshipMapping mapping ) : object
value JToken
mapping IRelationshipMapping
리턴 object

GetMetadata() 공개 메소드

public GetMetadata ( object objectGraph ) : object>.Dictionary
objectGraph object
리턴 object>.Dictionary

GetObjectType() 공개 메소드

public GetObjectType ( object objectGraph ) : Type
objectGraph object
리턴 System.Type

GetValue() 공개 메소드

public GetValue ( JToken value, Type returnType ) : object
value JToken
returnType System.Type
리턴 object

HandleException() 공개 메소드

public HandleException ( Exception exception ) : CompoundDocument
exception System.Exception
리턴 CompoundDocument

HandleHttpError() 공개 메소드

public HandleHttpError ( HttpError error ) : CompoundDocument
error HttpError
리턴 CompoundDocument

UnifyObjectsToList() 공개 메소드

public UnifyObjectsToList ( object nestedObject ) : List
nestedObject object
리턴 List

UnwrapResourceObject() 공개 메소드

public UnwrapResourceObject ( object objectGraph ) : object
objectGraph object
리턴 object

VerifyTypeSupport() 공개 메소드

public VerifyTypeSupport ( Type innerObjectType ) : void
innerObjectType System.Type
리턴 void