Class News163
- java.lang.Object
-
- us.codecraft.webmagic.model.samples.News163
-
- All Implemented Interfaces:
MultiPageModel
public class News163 extends java.lang.Object implements MultiPageModel
- Author:
- code4crafter@gmail.com
-
-
Constructor Summary
Constructors Constructor Description News163()
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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.static void
main(java.lang.String[] args)
java.lang.String
toString()
-
-
-
Method Detail
-
getPageKey
public java.lang.String getPageKey()
Description copied from interface:MultiPageModel
Page key is the identifier for the object.- Specified by:
getPageKey
in interfaceMultiPageModel
- Returns:
- page key
-
getOtherPages
public java.util.Collection<java.lang.String> getOtherPages()
Description copied from interface:MultiPageModel
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.- Specified by:
getOtherPages
in interfaceMultiPageModel
- Returns:
- other pages
-
getPage
public java.lang.String getPage()
Description copied from interface:MultiPageModel
page is the identifier of a page in pages for one object.- Specified by:
getPage
in interfaceMultiPageModel
- Returns:
- page
-
combine
public MultiPageModel combine(MultiPageModel multiPageModel)
Description copied from interface:MultiPageModel
Combine multiPageModels to a whole object.- Specified by:
combine
in interfaceMultiPageModel
- Parameters:
multiPageModel
- multiPageModel- Returns:
- multiPageModel combined
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
main
public static void main(java.lang.String[] args)
-
-