org.compass.core.mapping.xsem
Class XmlPropertyAnalyzerController

java.lang.Object
  extended by org.compass.core.mapping.AbstractMapping
      extended by org.compass.core.mapping.AbstractResourcePropertyMapping
          extended by org.compass.core.mapping.xsem.XmlPropertyMapping
              extended by org.compass.core.mapping.xsem.XmlPropertyAnalyzerController
All Implemented Interfaces:
InternalResourcePropertyMapping, Mapping, OverrideByNameMapping, ResourceAnalyzerController, ResourcePropertyMapping, XPathEnabledMapping

public class XmlPropertyAnalyzerController
extends XmlPropertyMapping
implements ResourceAnalyzerController

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.compass.core.mapping.ResourcePropertyMapping
ResourcePropertyMapping.ExcludeFromAllType, ResourcePropertyMapping.ReverseType
 
Constructor Summary
XmlPropertyAnalyzerController()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 String getAnalyzerResourcePropertyName()
          Returns the name of the Resource Property which value will control the analyzer to be used for the resource.
 Property.Index getIndex()
           
 String getNullAnalyzer()
          Returns the name of the analyzer to be used in case the Resource Property value is null.
 Property.Store getStore()
           
 boolean hasNullAnalyzer()
          Returns true if the controller has a null analyzer configured.
 void setNullAnalyzer(String nullAnalyzer)
           
 
Methods inherited from class org.compass.core.mapping.xsem.XmlPropertyMapping
copy, getValueConverter, getValueConverterName, getXPath, getXPathExpression, isOverrideByName, setOverrideByName, setValueConverter, setValueConverterName, setXPath, setXPathExpression
 
Methods inherited from class org.compass.core.mapping.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getExcludeFromAll, getNullValue, getReverse, getRootAlias, getSpellCheck, getTermVector, hasNullValue, isInternal, isOmitNorms, setAnalyzer, setBoost, setExcludeFromAll, setIndex, setInternal, setNullValue, setOmitNorms, setReverse, setRootAlias, setSpellCheck, setStore, setTermVector
 
Methods inherited from class org.compass.core.mapping.AbstractMapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.compass.core.mapping.ResourcePropertyMapping
getAnalyzer, getBoost, getExcludeFromAll, getNullValue, getReverse, getRootAlias, getSpellCheck, getTermVector, hasNullValue, isInternal, isOmitNorms
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

Constructor Detail

XmlPropertyAnalyzerController

public XmlPropertyAnalyzerController()
Method Detail

copy

public Mapping copy()
Description copied from interface: Mapping
Copies over the mapping definition into a newly instanciated Mapping object.

Specified by:
copy in interface Mapping
Overrides:
copy in class XmlPropertyMapping

getAnalyzerResourcePropertyName

public String getAnalyzerResourcePropertyName()
Description copied from interface: ResourceAnalyzerController
Returns the name of the Resource Property which value will control the analyzer to be used for the resource.

Specified by:
getAnalyzerResourcePropertyName in interface ResourceAnalyzerController

getIndex

public Property.Index getIndex()
Specified by:
getIndex in interface ResourcePropertyMapping
Overrides:
getIndex in class AbstractResourcePropertyMapping

getStore

public Property.Store getStore()
Specified by:
getStore in interface ResourcePropertyMapping
Overrides:
getStore in class AbstractResourcePropertyMapping

getNullAnalyzer

public String getNullAnalyzer()
Description copied from interface: ResourceAnalyzerController
Returns the name of the analyzer to be used in case the Resource Property value is null.

Specified by:
getNullAnalyzer in interface ResourceAnalyzerController

setNullAnalyzer

public void setNullAnalyzer(String nullAnalyzer)

hasNullAnalyzer

public boolean hasNullAnalyzer()
Description copied from interface: ResourceAnalyzerController
Returns true if the controller has a null analyzer configured.

Specified by:
hasNullAnalyzer in interface ResourceAnalyzerController


Copyright (c) 2004-2008 The Compass Project.