C# Class RAML.WebApiExplorer.Raml1TypeBuilder

ファイルを表示 Open project: mulesoft-labs/raml-dotnet-apiexplorer Class Usage Examples

Public Methods

Method Description
Add ( Type type ) : string
Raml1TypeBuilder ( Raml.Parser.Expressions.RamlTypesOrderedDictionary raml1Types ) : System

Private Methods

Method Description
AddType ( Type type, Raml.Parser.Expressions.RamlType raml1Type ) : void
ConvertToNullableDecimal ( object value ) : decimal?
GetArray ( Type elementType ) : Raml.Parser.Expressions.RamlType
GetArrayOfArray ( Type subElementType ) : Raml.Parser.Expressions.RamlType
GetClassProperties ( Type type ) : IEnumerable
GetElementType ( Type type ) : Type
GetEnum ( Type type ) : Raml.Parser.Expressions.RamlType
GetMap ( Type type ) : Raml.Parser.Expressions.RamlType
GetObject ( Type type ) : Raml.Parser.Expressions.RamlType
GetProperties ( Type type ) : RamlType>.IDictionary
GetProperty ( PropertyInfo prop ) : Raml.Parser.Expressions.RamlType
GetScalar ( Type type ) : Raml.Parser.Expressions.RamlType
GetTypeName ( Type type ) : string
GetUniqueName ( string schemaName ) : string
HandleNestedTypeProperty ( PropertyInfo prop ) : Raml.Parser.Expressions.RamlType
HandlePrimitiveTypeProperty ( PropertyInfo prop ) : Raml.Parser.Expressions.RamlType
HandleValidationAttribute ( Raml.Parser.Expressions.RamlType ramlTypeProp, CustomAttributeData attribute ) : void
HandleValidationAttributes ( Raml.Parser.Expressions.RamlType ramlTypeProp, IEnumerable customAttributes ) : void
HasPropertiesOrParentType ( Type type ) : bool
IsDictionary ( Type type ) : bool
IsOptionalProperty ( PropertyInfo prop, IEnumerable customAttributes ) : bool
IsParentADictionary ( Type type ) : bool

Method Details

Add() public method

public Add ( Type type ) : string
type System.Type
return string

Raml1TypeBuilder() public method

public Raml1TypeBuilder ( Raml.Parser.Expressions.RamlTypesOrderedDictionary raml1Types ) : System
raml1Types Raml.Parser.Expressions.RamlTypesOrderedDictionary
return System