C# Class Paralect.Schematra.RecordTypeBuilder

Inheritance: RecordType
显示文件 Open project: paralect/Schematra Class Usage Examples

Public Methods

Method Description
AddField ( Int32 index, String name, String typeName, FieldQualifier qualifier, Object defaultValue ) : RecordTypeBuilder
AddField ( Int32 index, String name, TypeResolver typeResolver, FieldQualifier qualifier, Object defaultValue ) : RecordTypeBuilder
Create ( ) : RecordType

Create instance of RecordType. In case it was bult incorrect - throws exception.

RecordTypeBuilder ( TypeContext typeContext ) : System
SetBaseType ( String baseType ) : RecordTypeBuilder

Define base record type

SetBaseType ( TypeResolver baseTypeResolver ) : RecordTypeBuilder

Define base record type

SetName ( String fullName ) : RecordTypeBuilder

Define name by full name

SetName ( String name, String @namespace ) : RecordTypeBuilder

Define name by name and @namespace

SetTag ( System.Guid tag ) : RecordTypeBuilder

Define tag

SetUsings ( List usings ) : RecordTypeBuilder

Method Details

AddField() public method

public AddField ( Int32 index, String name, String typeName, FieldQualifier qualifier, Object defaultValue ) : RecordTypeBuilder
index System.Int32
name String
typeName String
qualifier FieldQualifier
defaultValue Object
return RecordTypeBuilder

AddField() public method

public AddField ( Int32 index, String name, TypeResolver typeResolver, FieldQualifier qualifier, Object defaultValue ) : RecordTypeBuilder
index System.Int32
name String
typeResolver TypeResolver
qualifier FieldQualifier
defaultValue Object
return RecordTypeBuilder

Create() public method

Create instance of RecordType. In case it was bult incorrect - throws exception.
public Create ( ) : RecordType
return RecordType

RecordTypeBuilder() public method

public RecordTypeBuilder ( TypeContext typeContext ) : System
typeContext TypeContext
return System

SetBaseType() public method

Define base record type
public SetBaseType ( String baseType ) : RecordTypeBuilder
baseType String
return RecordTypeBuilder

SetBaseType() public method

Define base record type
public SetBaseType ( TypeResolver baseTypeResolver ) : RecordTypeBuilder
baseTypeResolver TypeResolver
return RecordTypeBuilder

SetName() public method

Define name by full name
public SetName ( String fullName ) : RecordTypeBuilder
fullName String
return RecordTypeBuilder

SetName() public method

Define name by name and @namespace
public SetName ( String name, String @namespace ) : RecordTypeBuilder
name String
@namespace String
return RecordTypeBuilder

SetTag() public method

Define tag
public SetTag ( System.Guid tag ) : RecordTypeBuilder
tag System.Guid
return RecordTypeBuilder

SetUsings() public method

public SetUsings ( List usings ) : RecordTypeBuilder
usings List
return RecordTypeBuilder