C# 클래스 Paralect.Schematra.TypeContext

파일 보기 프로젝트 열기: paralect/Schematra 1 사용 예제들

공개 메소드들

메소드 설명
AddType ( Type type ) : void

Add schema to context

Build ( ) : void

Build type context. Insure that all references are valid and there is no circular depenency. Type context that wasn't built shouldn't be used.

DefineEnum ( Action builder ) : TypeContext

Define Enum type

DefineRecord ( Action builder ) : TypeContext

Define Record type

GetByFullName ( String fullName ) : Type
GetRecordType ( String fullName ) : RecordType
RemoveSchema ( RecordType recordType ) : void

Remove schema from the context

TypeContext ( ) : System

Initialization

비공개 메소드들

메소드 설명
CheckForCircularDependency ( ) : void

Check that there is no circular dependency between all record types

메소드 상세

AddType() 공개 메소드

Add schema to context
public AddType ( Type type ) : void
type Type
리턴 void

Build() 공개 메소드

Build type context. Insure that all references are valid and there is no circular depenency. Type context that wasn't built shouldn't be used.
public Build ( ) : void
리턴 void

DefineEnum() 공개 메소드

Define Enum type
public DefineEnum ( Action builder ) : TypeContext
builder Action
리턴 TypeContext

DefineRecord() 공개 메소드

Define Record type
public DefineRecord ( Action builder ) : TypeContext
builder Action
리턴 TypeContext

GetByFullName() 공개 메소드

public GetByFullName ( String fullName ) : Type
fullName String
리턴 Type

GetRecordType() 공개 메소드

public GetRecordType ( String fullName ) : RecordType
fullName String
리턴 RecordType

RemoveSchema() 공개 메소드

Remove schema from the context
public RemoveSchema ( RecordType recordType ) : void
recordType RecordType
리턴 void

TypeContext() 공개 메소드

Initialization
public TypeContext ( ) : System
리턴 System