org.compass.core.mapping.rsem.builder
Class ResourceAnalyzerMappingBuilder

java.lang.Object
  extended by org.compass.core.mapping.rsem.builder.ResourceAnalyzerMappingBuilder

public class ResourceAnalyzerMappingBuilder
extends Object

A builder allowing to construct a resource analyzer property mapping. Resource analyzer property mapping allows to dynamically define the analyzer that will be used to analyzer the resource (properties that are specificed as analyzed). The value of the analyzer property will be used to lookup a registered analyzer within Compass. If no analyzer is found, the nullAnalyzer(String) will be used (if specified).

Author:
kimchy
See Also:
RSEM.analyzer(String)

Field Summary
(package private)  RawResourcePropertyAnalyzerController mapping
           
 
Constructor Summary
ResourceAnalyzerMappingBuilder(String name)
          Constructs a new resource analyzer property using the provided name.
 
Method Summary
 ResourceAnalyzerMappingBuilder converter(Converter converter)
          Sets an actual converter that will be used to convert this property value.
 ResourceAnalyzerMappingBuilder converter(String converterName)
          Sets the lookup converter name (registered with Compass) that will be used to convert the value of the property.
 ResourceAnalyzerMappingBuilder nullAnalyzer(String nullAnalyzer)
          The name of the analyzer that will be used if the property has the null value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapping

final RawResourcePropertyAnalyzerController mapping
Constructor Detail

ResourceAnalyzerMappingBuilder

public ResourceAnalyzerMappingBuilder(String name)
Constructs a new resource analyzer property using the provided name.

Method Detail

nullAnalyzer

public ResourceAnalyzerMappingBuilder nullAnalyzer(String nullAnalyzer)
The name of the analyzer that will be used if the property has the null value.


converter

public ResourceAnalyzerMappingBuilder converter(String converterName)
Sets the lookup converter name (registered with Compass) that will be used to convert the value of the property.


converter

public ResourceAnalyzerMappingBuilder converter(Converter converter)
Sets an actual converter that will be used to convert this property value.



Copyright (c) 2004-2009 The Compass Project.