C# Class OpenScraping.Config.StructuredDataConfig

ファイルを表示 Open project: Microsoft/openscraping-lib-csharp

Public Methods

Method Description
ParseJsonFile ( string configPath ) : ConfigSection
ParseJsonString ( string json ) : ConfigSection

Private Methods

Method Description
ParseSection ( Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
ProcessChild ( string childName, JToken rawChild, Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
ProcessConfigName ( Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
ProcessForceArray ( Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
ProcessRemoveTags ( Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
ProcessTransformation ( ConfigSection currentConfig, JToken transformation ) : void
ProcessTransformation ( Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
ProcessTransformations ( Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
ProcessUrlPatterns ( Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
ProcessXPathRules ( Newtonsoft.Json.Linq.JObject parsedJson, ConfigSection currentConfig ) : void
TransformationConfigFromName ( string name ) : JToken

Method Details

ParseJsonFile() public static method

public static ParseJsonFile ( string configPath ) : ConfigSection
configPath string
return ConfigSection

ParseJsonString() public static method

public static ParseJsonString ( string json ) : ConfigSection
json string
return ConfigSection