C# Class Paralect.Schematra.TypeContext

ファイルを表示 Open project: paralect/Schematra Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
CheckForCircularDependency ( ) : void

Check that there is no circular dependency between all record types

Method Details

AddType() public method

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

Build() public method

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
return void

DefineEnum() public method

Define Enum type
public DefineEnum ( Action builder ) : TypeContext
builder Action
return TypeContext

DefineRecord() public method

Define Record type
public DefineRecord ( Action builder ) : TypeContext
builder Action
return TypeContext

GetByFullName() public method

public GetByFullName ( String fullName ) : Type
fullName String
return Type

GetRecordType() public method

public GetRecordType ( String fullName ) : RecordType
fullName String
return RecordType

RemoveSchema() public method

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

TypeContext() public method

Initialization
public TypeContext ( ) : System
return System