public static class PubMedDocumentSourceDescriptor.AttributeBuilder extends SimpleSearchEngineDescriptor.AttributeBuilder
PubMedDocumentSource component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PubMedDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
PubMedDocumentSourceDescriptor.AttributeBuilder |
maxResults(int value)
Maximum results to fetch.
|
PubMedDocumentSourceDescriptor.AttributeBuilder |
maxResults(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Maximum results to fetch.
|
PubMedDocumentSourceDescriptor.AttributeBuilder |
redirectStrategy(HttpRedirectStrategy value)
HTTP redirect response strategy (follow or throw an error).
|
PubMedDocumentSourceDescriptor.AttributeBuilder |
redirectStrategy(org.carrot2.util.attribute.IObjectFactory<? extends HttpRedirectStrategy> value)
HTTP redirect response strategy (follow or throw an error).
|
PubMedDocumentSourceDescriptor.AttributeBuilder |
toolName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Tool name, if registered.
|
PubMedDocumentSourceDescriptor.AttributeBuilder |
toolName(String value)
Tool name, if registered.
|
compressed, documents, query, query, results, results, resultsTotal, start, startpublic PubMedDocumentSourceDescriptor.AttributeBuilder toolName(String value)
PubMedDocumentSource.toolNamepublic PubMedDocumentSourceDescriptor.AttributeBuilder toolName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
PubMedDocumentSource.toolNamepublic PubMedDocumentSourceDescriptor.AttributeBuilder maxResults(int value)
PubMedDocumentSource.maxResultspublic PubMedDocumentSourceDescriptor.AttributeBuilder maxResults(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
PubMedDocumentSource.maxResultspublic PubMedDocumentSourceDescriptor.AttributeBuilder redirectStrategy(HttpRedirectStrategy value)
public PubMedDocumentSourceDescriptor.AttributeBuilder redirectStrategy(org.carrot2.util.attribute.IObjectFactory<? extends HttpRedirectStrategy> value)