public final class CommentsInfoItemsCollector extends InfoItemsCollector<CommentsInfoItem,CommentsInfoItemExtractor>
Constructor and Description |
---|
CommentsInfoItemsCollector(int serviceId) |
Modifier and Type | Method and Description |
---|---|
void |
commit(CommentsInfoItemExtractor extractor)
Try to add an extractor to the collection
|
CommentsInfoItem |
extract(CommentsInfoItemExtractor extractor)
Try to extract the item from an extractor without adding it to the collection
|
List<CommentsInfoItem> |
getCommentsInfoItemList() |
addError, addItem, getErrors, getItems, getServiceId, reset
public CommentsInfoItem extract(CommentsInfoItemExtractor extractor) throws ParsingException
Collector
extractor
- the extractor to useParsingException
- thrown if there is an error extracting the
required fields of the item.public void commit(CommentsInfoItemExtractor extractor)
Collector
commit
in interface Collector<CommentsInfoItem,CommentsInfoItemExtractor>
commit
in class InfoItemsCollector<CommentsInfoItem,CommentsInfoItemExtractor>
extractor
- the extractor to addpublic List<CommentsInfoItem> getCommentsInfoItemList()