org.compass.core.mapping.osem
Class ClassBoostPropertyMapping

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.support.AbstractMultipleMapping
          extended by org.compass.core.mapping.osem.AbstractAccessorMultipleMapping
              extended by org.compass.core.mapping.osem.ClassPropertyMapping
                  extended by org.compass.core.mapping.osem.ClassBoostPropertyMapping
All Implemented Interfaces:
BoostPropertyMapping, InternalMapping, InternalMultipleMapping, InternalOverrideByNameMapping, Mapping, MultipleMapping, InternalObjectMapping, InternalOsemMapping, ObjectMapping, OsemMapping, OverrideByNameMapping

public class ClassBoostPropertyMapping
extends ClassPropertyMapping
implements BoostPropertyMapping

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.mapping.support.AbstractMultipleMapping
mappings, mappingsByNameMap
 
Constructor Summary
ClassBoostPropertyMapping()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 String getBoostResourcePropertyName()
           
 float getDefaultBoost()
           
 boolean isOverrideByName()
          Returns true to control of this mapping overrides by name anotehr mapping within the same multiple mapping container.
 boolean requiresIdProcessing()
          Returns if the mapping must have id processing performed on it (even, for example, when support unmarshall is set to false).
 void setDefaultBoost(float defaultBoost)
           
 
Methods inherited from class org.compass.core.mapping.osem.ClassPropertyMapping
canBeCollectionWrapped, copy, getAccessor, getAnalyzer, getBoost, getClassName, getDefinedInAlias, getExcludeFromAll, getIdMapping, getIdPropertyIndex, getManagedId, getManagedIdConverter, getManagedIdConverterName, getManagedIdIndex, getPropertyName, isIdPropertySet, setAccessor, setAnalyzer, setBoost, setClassName, setDefinedInAlias, setExcludeFromAll, setIdPropertyIndex, setManagedId, setManagedIdConverter, setManagedIdConverterName, setManagedIdIndex, setOverrideByName, setPropertyName
 
Methods inherited from class org.compass.core.mapping.osem.AbstractAccessorMultipleMapping
copy, getGetter, getSetter, hasAccessors, setGetter, setSetter
 
Methods inherited from class org.compass.core.mapping.support.AbstractMultipleMapping
addMapping, addMappings, clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, replaceMappings, shallowCopy
 
Methods inherited from class org.compass.core.mapping.support.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.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.internal.InternalMapping
setConverter, setConverterName, setName, setPath
 

Constructor Detail

ClassBoostPropertyMapping

public ClassBoostPropertyMapping()
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 ClassPropertyMapping

getBoostResourcePropertyName

public String getBoostResourcePropertyName()
Specified by:
getBoostResourcePropertyName in interface BoostPropertyMapping

getDefaultBoost

public float getDefaultBoost()
Specified by:
getDefaultBoost in interface BoostPropertyMapping

setDefaultBoost

public void setDefaultBoost(float defaultBoost)

isOverrideByName

public boolean isOverrideByName()
Description copied from interface: OverrideByNameMapping
Returns true to control of this mapping overrides by name anotehr mapping within the same multiple mapping container.

Specified by:
isOverrideByName in interface OverrideByNameMapping
Overrides:
isOverrideByName in class ClassPropertyMapping

requiresIdProcessing

public boolean requiresIdProcessing()
Description copied from class: ClassPropertyMapping
Returns if the mapping must have id processing performed on it (even, for example, when support unmarshall is set to false).

Overrides:
requiresIdProcessing in class ClassPropertyMapping


Copyright (c) 2004-2009 The Compass Project.