org.carrot2.source.pubmed
Class PubMedDocumentSourceDescriptor.AttributeBuilder

java.lang.Object
  extended by org.carrot2.source.SearchEngineBaseDescriptor.AttributeBuilder
      extended by org.carrot2.source.SimpleSearchEngineDescriptor.AttributeBuilder
          extended by org.carrot2.source.pubmed.PubMedDocumentSourceDescriptor.AttributeBuilder
Enclosing class:
PubMedDocumentSourceDescriptor

public static class PubMedDocumentSourceDescriptor.AttributeBuilder
extends SimpleSearchEngineDescriptor.AttributeBuilder

Attribute map builder for the PubMedDocumentSource component. You can use this builder as a type-safe alternative to populating the attribute map using attribute keys.


Field Summary
 Map<String,Object> map
          The attribute map populated by this builder.
 
Constructor Summary
protected PubMedDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 PubMedDocumentSourceDescriptor.AttributeBuilder maxResults(int value)
          Maximum results to fetch.
 
Methods inherited from class org.carrot2.source.SearchEngineBaseDescriptor.AttributeBuilder
compressed, documents, query, results, resultsTotal, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

public final Map<String,Object> map
The attribute map populated by this builder.

Constructor Detail

PubMedDocumentSourceDescriptor.AttributeBuilder

protected PubMedDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.

Method Detail

maxResults

public PubMedDocumentSourceDescriptor.AttributeBuilder maxResults(int value)
Maximum results to fetch. No more than the specified number of results will be fetched from PubMed, regardless of the requested number of results.

See Also:
PubMedDocumentSource.maxResults


Copyright (c) Dawid Weiss, Stanislaw Osinski