C# Класс RAML.WebApiExplorer.SchemaBuilder

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
Types ICollection

Открытые методы

Метод Описание
Get ( Type type ) : string

Защищенные методы

Метод Описание
GetNestedArraySchema ( int pad, Type elementType ) : string
GetNestedArraySchemaPrimitiveType ( int pad, Type elementType ) : string
GetNestedObjectSchema ( Type type, int pad, IEnumerable customAttributes ) : string
GetProperty ( int pad, PropertyInfo prop, string schema, IEnumerable props, IEnumerable customAttributes ) : string
GetRecursively ( Type type, int pad, IEnumerable customAttributes ) : string
HandleEnumProperty ( int pad, PropertyInfo prop, IEnumerable props, string schema ) : string
HandleNestedTypeProperty ( int pad, PropertyInfo prop, string schema, IEnumerable props, IEnumerable customAttributes ) : string
HandlePrimitiveTypeProperty ( int pad, PropertyInfo prop, IEnumerable props, string schema, IEnumerable customAttributes ) : string
HandleValidationAttribute ( CustomAttributeData attribute ) : string

Приватные методы

Метод Описание
AddDefinitionsIfAny ( string schema ) : string
AddTrailingComma ( string schema ) : string
BuildLastProperty ( PropertyInfo prop, IEnumerable customAttributes, int pad ) : string
BuildProperty ( PropertyInfo prop, IEnumerable customAttributes, int pad ) : string
BuildPropertyCommon ( PropertyInfo prop, IEnumerable customAttributes ) : string
GetArray ( Type elementType ) : string
GetDefinitions ( ) : string
GetEnumProperty ( PropertyInfo prop, int pad ) : string
GetMainObjectSchema ( Type type ) : string
GetOneOfProperty ( PropertyInfo prop, IEnumerable subclasses, int pad ) : string
GetProperties ( Type elementType, int pad ) : string
HandleRequiredAttribute ( IEnumerable customAttributes ) : string
HandleRequiredAttribute ( PropertyInfo prop, IEnumerable customAttributes ) : string
HandleValidationAttributes ( IEnumerable customAttributes ) : string
RemoveTrailingComma ( string schema ) : string

Описание методов

Get() публичный Метод

public Get ( Type type ) : string
type System.Type
Результат string

GetNestedArraySchema() защищенный Метод

protected GetNestedArraySchema ( int pad, Type elementType ) : string
pad int
elementType System.Type
Результат string

GetNestedArraySchemaPrimitiveType() защищенный Метод

protected GetNestedArraySchemaPrimitiveType ( int pad, Type elementType ) : string
pad int
elementType System.Type
Результат string

GetNestedObjectSchema() защищенный Метод

protected GetNestedObjectSchema ( Type type, int pad, IEnumerable customAttributes ) : string
type System.Type
pad int
customAttributes IEnumerable
Результат string

GetProperty() защищенный Метод

protected GetProperty ( int pad, PropertyInfo prop, string schema, IEnumerable props, IEnumerable customAttributes ) : string
pad int
prop System.Reflection.PropertyInfo
schema string
props IEnumerable
customAttributes IEnumerable
Результат string

GetRecursively() защищенный Метод

protected GetRecursively ( Type type, int pad, IEnumerable customAttributes ) : string
type System.Type
pad int
customAttributes IEnumerable
Результат string

HandleEnumProperty() защищенный Метод

protected HandleEnumProperty ( int pad, PropertyInfo prop, IEnumerable props, string schema ) : string
pad int
prop System.Reflection.PropertyInfo
props IEnumerable
schema string
Результат string

HandleNestedTypeProperty() защищенный Метод

protected HandleNestedTypeProperty ( int pad, PropertyInfo prop, string schema, IEnumerable props, IEnumerable customAttributes ) : string
pad int
prop System.Reflection.PropertyInfo
schema string
props IEnumerable
customAttributes IEnumerable
Результат string

HandlePrimitiveTypeProperty() защищенный Метод

protected HandlePrimitiveTypeProperty ( int pad, PropertyInfo prop, IEnumerable props, string schema, IEnumerable customAttributes ) : string
pad int
prop System.Reflection.PropertyInfo
props IEnumerable
schema string
customAttributes IEnumerable
Результат string

HandleValidationAttribute() защищенный Метод

protected HandleValidationAttribute ( CustomAttributeData attribute ) : string
attribute System.Reflection.CustomAttributeData
Результат string

Описание свойств

Types защищенное свойство

protected ICollection Types
Результат ICollection