C# Class CIAPI.CodeGenerator.SchemaParser

Datei anzeigen Open project: cityindex-attic/CIAPI.CodeGeneration

Public Properties

Property Type Description
Schema Newtonsoft.Json.Linq.JObject

Public Methods

Method Description
AppendLine ( Stream output, string line ) : void
BeginCodeFile ( Stream output ) : void

EmitEnumeration ( Stream output, Newtonsoft.Json.Linq.JObject typeObj ) : void

EmitType ( Stream output, Newtonsoft.Json.Linq.JObject typeObject, bool flattenHierarchy ) : void

EmitTypes ( Stream output, bool flattenHierarchy ) : void
EndCodeFile ( Stream output ) : void

GetBaseType ( Newtonsoft.Json.Linq.JObject typeObj ) : Newtonsoft.Json.Linq.JObject

GetTypes ( ) : JObject>.Dictionary

RecurseHierarchyAndAppendProperties ( Newtonsoft.Json.Linq.JObject typeObject ) : void
ResolvePrimitiveTypeName ( string typename, Newtonsoft.Json.Linq.JObject property ) : string

SchemaParser ( string schemaJson ) : System

Method Details

AppendLine() public method

public AppendLine ( Stream output, string line ) : void
output Stream
line string
return void

BeginCodeFile() public abstract method

public abstract BeginCodeFile ( Stream output ) : void
output Stream
return void

EmitEnumeration() public abstract method

public abstract EmitEnumeration ( Stream output, Newtonsoft.Json.Linq.JObject typeObj ) : void
output Stream
typeObj Newtonsoft.Json.Linq.JObject
return void

EmitType() public abstract method

public abstract EmitType ( Stream output, Newtonsoft.Json.Linq.JObject typeObject, bool flattenHierarchy ) : void
output Stream
typeObject Newtonsoft.Json.Linq.JObject
flattenHierarchy bool
return void

EmitTypes() public method

public EmitTypes ( Stream output, bool flattenHierarchy ) : void
output Stream
flattenHierarchy bool
return void

EndCodeFile() public abstract method

public abstract EndCodeFile ( Stream output ) : void
output Stream
return void

GetBaseType() public method

public GetBaseType ( Newtonsoft.Json.Linq.JObject typeObj ) : Newtonsoft.Json.Linq.JObject
typeObj Newtonsoft.Json.Linq.JObject
return Newtonsoft.Json.Linq.JObject

GetTypes() public method

public GetTypes ( ) : JObject>.Dictionary
return JObject>.Dictionary

RecurseHierarchyAndAppendProperties() public method

public RecurseHierarchyAndAppendProperties ( Newtonsoft.Json.Linq.JObject typeObject ) : void
typeObject Newtonsoft.Json.Linq.JObject
return void

ResolvePrimitiveTypeName() public abstract method

public abstract ResolvePrimitiveTypeName ( string typename, Newtonsoft.Json.Linq.JObject property ) : string
typename string
property Newtonsoft.Json.Linq.JObject
return string

SchemaParser() public method

public SchemaParser ( string schemaJson ) : System
schemaJson string
return System

Property Details

Schema public_oe property

public JObject,Newtonsoft.Json.Linq Schema
return Newtonsoft.Json.Linq.JObject