C# Class FalcoA.Core.PhaseParseContent

ParseContent和ParseUrl不同,后者要求只有一个Match。 而ParseContent可以有多个Match。Match的结果作为多个JSON字符串保存
Inheritance: PhaseParseContentBase
Exibir arquivo Open project: TaikorInc/FalcoA Class Usage Examples

Public Methods

Method Description
Create ( TreeNode parameters, System.Boolean useBrowser = false ) : PhaseParseContent
Run ( Context context ) : PhaseResult

Private Methods

Method Description
Initialize ( Context context ) : void
ParseByRegex ( String content ) : List
ParseByXPath ( String content ) : List
ParseNestedItem ( String nested, String pattern ) : List

处理嵌套的Item,一个Item可以嵌套多个Item。但是目前只支持嵌套一层

TrimCommonXPath ( List xpaths ) : String

截取xpath的公共部分

Method Details

Create() public static method

public static Create ( TreeNode parameters, System.Boolean useBrowser = false ) : PhaseParseContent
parameters TreeNode
useBrowser System.Boolean
return PhaseParseContent

Run() public method

public Run ( Context context ) : PhaseResult
context Context
return PhaseResult