Package us.codecraft.webmagic
Interface MultiPageModel
-
- All Known Implementing Classes:
News163
public interface MultiPageModel
Extract an object of more than one pages, such as news and articles.- Since:
- 0.2.0
- Author:
- code4crafter@gmail.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MultiPageModel
combine(MultiPageModel multiPageModel)
Combine multiPageModels to a whole object.java.util.Collection<java.lang.String>
getOtherPages()
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.java.lang.String
getPage()
page is the identifier of a page in pages for one object.java.lang.String
getPageKey()
Page key is the identifier for the object.
-
-
-
Method Detail
-
getPageKey
java.lang.String getPageKey()
Page key is the identifier for the object.- Returns:
- page key
-
getPage
java.lang.String getPage()
page is the identifier of a page in pages for one object.- Returns:
- page
-
getOtherPages
java.util.Collection<java.lang.String> getOtherPages()
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.- Returns:
- other pages
-
combine
MultiPageModel combine(MultiPageModel multiPageModel)
Combine multiPageModels to a whole object.- Parameters:
multiPageModel
- multiPageModel- Returns:
- multiPageModel combined
-
-