org.dspace.discovery.configuration
Class DiscoveryHitHighlightFieldConfiguration

java.lang.Object
  extended by org.dspace.discovery.configuration.DiscoveryHitHighlightFieldConfiguration

public class DiscoveryHitHighlightFieldConfiguration
extends Object

Configuration class that holds hit highlighting configuration for a single metadata field

Author:
Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)

Constructor Summary
DiscoveryHitHighlightFieldConfiguration()
           
 
Method Summary
 String getField()
           
 int getMaxSize()
           
 int getSnippets()
          Get the maximum number of highlighted snippets to generate per field
 void setField(String field)
           
 void setMaxSize(int maxSize)
           
 void setSnippets(int snippets)
          Set the maximum number of highlighted snippets to generate per field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryHitHighlightFieldConfiguration

public DiscoveryHitHighlightFieldConfiguration()
Method Detail

getField

public String getField()

setField

public void setField(String field)

getMaxSize

public int getMaxSize()

setMaxSize

public void setMaxSize(int maxSize)

setSnippets

public void setSnippets(int snippets)
Set the maximum number of highlighted snippets to generate per field

Parameters:
snippets - the number of maximum snippets

getSnippets

public int getSnippets()
Get the maximum number of highlighted snippets to generate per field



Copyright © 2012 DuraSpace. All Rights Reserved.