C# Class TerrificNet.Generator.JsonSchemaCodeGenerator

Inheritance: IJsonSchemaCodeGenerator
Afficher le fichier Open project: namics/TerrificNet Class Usage Examples

Méthodes publiques

Méthode Description
Compile ( Newtonsoft.Json.Schema.JSchema schema ) : Type
CompileTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void
Generate ( Newtonsoft.Json.Schema.JSchema schema ) : string
JsonSchemaCodeGenerator ( ) : System
JsonSchemaCodeGenerator ( INamingRule namingRule ) : System
WriteTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void

Private Methods

Méthode Description
CompileToInternal ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : EmitResult
GetRootNamespace ( IEnumerable schemas, string rootNamespace ) : SyntaxList
GetSyntax ( Newtonsoft.Json.Schema.JSchema schema ) : CompilationUnitSyntax
GetSyntaxTree ( IEnumerable schemas, string rootNamespace = null ) : SyntaxTree

Method Details

Compile() public méthode

public Compile ( Newtonsoft.Json.Schema.JSchema schema ) : Type
schema Newtonsoft.Json.Schema.JSchema
Résultat System.Type

CompileTo() public méthode

public CompileTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void
schemas IEnumerable
stream Stream
rootNamespace string
Résultat void

Generate() public méthode

public Generate ( Newtonsoft.Json.Schema.JSchema schema ) : string
schema Newtonsoft.Json.Schema.JSchema
Résultat string

JsonSchemaCodeGenerator() public méthode

public JsonSchemaCodeGenerator ( ) : System
Résultat System

JsonSchemaCodeGenerator() public méthode

public JsonSchemaCodeGenerator ( INamingRule namingRule ) : System
namingRule INamingRule
Résultat System

WriteTo() public méthode

public WriteTo ( IEnumerable schemas, Stream stream, string rootNamespace = null ) : void
schemas IEnumerable
stream Stream
rootNamespace string
Résultat void