C# Class Paralect.Schematra.TypeContext

Afficher le fichier Open project: paralect/Schematra Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CheckForCircularDependency ( ) : void

Check that there is no circular dependency between all record types

Method Details

AddType() public méthode

Add schema to context
public AddType ( Type type ) : void
type Type
Résultat void

Build() public méthode

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
Résultat void

DefineEnum() public méthode

Define Enum type
public DefineEnum ( Action builder ) : TypeContext
builder Action
Résultat TypeContext

DefineRecord() public méthode

Define Record type
public DefineRecord ( Action builder ) : TypeContext
builder Action
Résultat TypeContext

GetByFullName() public méthode

public GetByFullName ( String fullName ) : Type
fullName String
Résultat Type

GetRecordType() public méthode

public GetRecordType ( String fullName ) : RecordType
fullName String
Résultat RecordType

RemoveSchema() public méthode

Remove schema from the context
public RemoveSchema ( RecordType recordType ) : void
recordType RecordType
Résultat void

TypeContext() public méthode

Initialization
public TypeContext ( ) : System
Résultat System