org.carrot2.source.microsoft
Class Bing2NewsDocumentSourceDescriptor.AttributeBuilder

java.lang.Object
  extended by org.carrot2.source.SearchEngineBaseDescriptor.AttributeBuilder
      extended by org.carrot2.source.MultipageSearchEngineDescriptor.AttributeBuilder
          extended by org.carrot2.source.microsoft.Bing2DocumentSourceDescriptor.AttributeBuilder
              extended by org.carrot2.source.microsoft.Bing2NewsDocumentSourceDescriptor.AttributeBuilder
Enclosing class:
Bing2NewsDocumentSourceDescriptor

public static class Bing2NewsDocumentSourceDescriptor.AttributeBuilder
extends Bing2DocumentSourceDescriptor.AttributeBuilder

Attribute map builder for the Bing2NewsDocumentSource 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 Bing2NewsDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 Bing2NewsDocumentSourceDescriptor.AttributeBuilder sortOrder(Class<? extends SortOrder> clazz)
          Specifies the sort order of results.
 Bing2NewsDocumentSourceDescriptor.AttributeBuilder sortOrder(SortOrder value)
          Specifies the sort order of results.
 
Methods inherited from class org.carrot2.source.microsoft.Bing2DocumentSourceDescriptor.AttributeBuilder
adult, adult, appid, market, market, options
 
Methods inherited from class org.carrot2.source.MultipageSearchEngineDescriptor.AttributeBuilder
searchMode, searchMode
 
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

Bing2NewsDocumentSourceDescriptor.AttributeBuilder

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

Method Detail

sortOrder

public Bing2NewsDocumentSourceDescriptor.AttributeBuilder sortOrder(SortOrder value)
Specifies the sort order of results.

See Also:
Bing2NewsDocumentSource.sortOrder

sortOrder

public Bing2NewsDocumentSourceDescriptor.AttributeBuilder sortOrder(Class<? extends SortOrder> clazz)
Specifies the sort order of results.

See Also:
Bing2NewsDocumentSource.sortOrder


Copyright (c) Dawid Weiss, Stanislaw Osinski