C# Class RAML.WebApiExplorer.SchemaBuilder

Mostra file Open project: mulesoft-labs/raml-dotnet-apiexplorer

Protected Properties

Property Type Description
Types ICollection

Public Methods

Method Description
Get ( Type type ) : string

Protected Methods

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

Private Methods

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

Method Details

Get() public method

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

GetNestedArraySchema() protected method

protected GetNestedArraySchema ( int pad, Type elementType ) : string
pad int
elementType System.Type
return string

GetNestedArraySchemaPrimitiveType() protected method

protected GetNestedArraySchemaPrimitiveType ( int pad, Type elementType ) : string
pad int
elementType System.Type
return string

GetNestedObjectSchema() protected method

protected GetNestedObjectSchema ( Type type, int pad, IEnumerable customAttributes ) : string
type System.Type
pad int
customAttributes IEnumerable
return string

GetProperty() protected method

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

GetRecursively() protected method

protected GetRecursively ( Type type, int pad, IEnumerable customAttributes ) : string
type System.Type
pad int
customAttributes IEnumerable
return string

HandleEnumProperty() protected method

protected HandleEnumProperty ( int pad, PropertyInfo prop, IEnumerable props, string schema ) : string
pad int
prop System.Reflection.PropertyInfo
props IEnumerable
schema string
return string

HandleNestedTypeProperty() protected method

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

HandlePrimitiveTypeProperty() protected method

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

HandleValidationAttribute() protected method

protected HandleValidationAttribute ( CustomAttributeData attribute ) : string
attribute System.Reflection.CustomAttributeData
return string

Property Details

Types protected_oe property

protected ICollection Types
return ICollection