Class News163
java.lang.Object
us.codecraft.webmagic.model.samples.News163
- All Implemented Interfaces:
MultiPageModel
- Author:
- code4crafter@gmail.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncombine(MultiPageModel multiPageModel) Combine multiPageModels to a whole object.other pages to be extracted.
It is used to judge whether an object contains more than one page, and whether the pages of the object are all extracted.getPage()page is the identifier of a page in pages for one object.Page key is the identifier for the object.static voidtoString()
-
Constructor Details
-
News163
public News163()
-
-
Method Details
-
getPageKey
Description copied from interface:MultiPageModelPage key is the identifier for the object.- Specified by:
getPageKeyin interfaceMultiPageModel- Returns:
- page key
-
getOtherPages
Description copied from interface:MultiPageModelother pages to be extracted.
It is used to judge whether an object contains more than one page, and whether the pages of the object are all extracted.- Specified by:
getOtherPagesin interfaceMultiPageModel- Returns:
- other pages
-
getPage
Description copied from interface:MultiPageModelpage is the identifier of a page in pages for one object.- Specified by:
getPagein interfaceMultiPageModel- Returns:
- page
-
combine
Description copied from interface:MultiPageModelCombine multiPageModels to a whole object.- Specified by:
combinein interfaceMultiPageModel- Parameters:
multiPageModel- multiPageModel- Returns:
- multiPageModel combined
-
toString
-
main
-