org.compass.core.mapping.osem
Class ClassPropertyMetaDataMapping

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.support.AbstractResourcePropertyMapping
          extended by org.compass.core.mapping.osem.ClassPropertyMetaDataMapping
All Implemented Interfaces:
InternalMapping, InternalResourcePropertyMapping, Mapping, InternalObjectMapping, InternalOsemMapping, ObjectMapping, OsemMapping, ResourcePropertyMapping

public class ClassPropertyMetaDataMapping
extends AbstractResourcePropertyMapping
implements InternalObjectMapping

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.compass.core.mapping.ResourcePropertyMapping
ResourcePropertyMapping.ExcludeFromAllType, ResourcePropertyMapping.ReverseType
 
Constructor Summary
ClassPropertyMetaDataMapping()
           
 
Method Summary
 boolean canActAsPropertyId()
          Returns true if this type of property can act as the Java Bean Property meta-data id.
 boolean canBeCollectionWrapped()
          Returns true if this object mapping can be wrapped with a Collection or an Array.
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 String getAccessor()
          Returns the accessor type for this mapping.
 String getDefinedInAlias()
          Returns which alias (or if not present, the FQN of the class name) this object property is defined at.
 Getter getGetter()
          Returns the getter of the property.
 String getPropertyName()
          Returns the class property name of the object mapping.
 ResourcePropertyConverter getResourcePropertyConverter()
           
 Setter getSetter()
          Returns the setter of the proeprty.
 boolean hasAccessors()
           
 void setAccessor(String accessor)
          Sets the accessor type for this mapping.
 void setDefinedInAlias(String definedInAlias)
          Sets which alias (or if not present, the FQN of the class name) this object property is defined at.
 void setGetter(Getter getter)
          Sests the getter for the property.
 void setPropertyName(String propertyName)
          Sets the class property name of the object mapping.
 void setSetter(Setter setter)
          Sets the setter for the property.
 
Methods inherited from class org.compass.core.mapping.support.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getExcludeFromAll, getIndex, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, getStore, getTermVector, hasNullValue, isInternal, isOmitNorms, isOmitTf, setAnalyzer, setBoost, setExcludeFromAll, setIndex, setInternal, setName, setNullValue, setOmitNorms, setOmitTf, setReverse, setRootAlias, setSpellCheck, setStore, setTermVector
 
Methods inherited from class org.compass.core.mapping.support.AbstractMapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, 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.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.internal.InternalMapping
setConverter, setConverterName, setName, setPath
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 

Constructor Detail

ClassPropertyMetaDataMapping

public ClassPropertyMetaDataMapping()
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

hasAccessors

public boolean hasAccessors()
Specified by:
hasAccessors in interface OsemMapping

canBeCollectionWrapped

public boolean canBeCollectionWrapped()
Description copied from interface: ObjectMapping
Returns true if this object mapping can be wrapped with a Collection or an Array.

Specified by:
canBeCollectionWrapped in interface ObjectMapping

getGetter

public Getter getGetter()
Description copied from interface: ObjectMapping
Returns the getter of the property.

Specified by:
getGetter in interface ObjectMapping

setGetter

public void setGetter(Getter getter)
Description copied from interface: InternalObjectMapping
Sests the getter for the property.

Specified by:
setGetter in interface InternalObjectMapping

getSetter

public Setter getSetter()
Description copied from interface: ObjectMapping
Returns the setter of the proeprty.

Specified by:
getSetter in interface ObjectMapping

setSetter

public void setSetter(Setter setter)
Description copied from interface: InternalObjectMapping
Sets the setter for the property.

Specified by:
setSetter in interface InternalObjectMapping

canActAsPropertyId

public boolean canActAsPropertyId()
Returns true if this type of property can act as the Java Bean Property meta-data id.


getAccessor

public String getAccessor()
Description copied from interface: ObjectMapping
Returns the accessor type for this mapping. The accessor type can be field, property or a custom implementation of PropertyAccessor (this can be either the FQN of the class name or a regsitered type in the configuration, see PropertyAccessorFactory.

Specified by:
getAccessor in interface ObjectMapping

setAccessor

public void setAccessor(String accessor)
Description copied from interface: InternalObjectMapping
Sets the accessor type for this mapping. The accessor type can be field, property or a custom implementation of PropertyAccessor (this can be either the FQN of the class name or a regsitered type in the configuration, see PropertyAccessorFactory.

Specified by:
setAccessor in interface InternalObjectMapping

getPropertyName

public String getPropertyName()
Description copied from interface: ObjectMapping
Returns the class property name of the object mapping.

Specified by:
getPropertyName in interface ObjectMapping

setPropertyName

public void setPropertyName(String propertyName)
Description copied from interface: InternalObjectMapping
Sets the class property name of the object mapping.

Specified by:
setPropertyName in interface InternalObjectMapping

getDefinedInAlias

public String getDefinedInAlias()
Description copied from interface: ObjectMapping
Returns which alias (or if not present, the FQN of the class name) this object property is defined at.

Specified by:
getDefinedInAlias in interface ObjectMapping

setDefinedInAlias

public void setDefinedInAlias(String definedInAlias)
Description copied from interface: InternalObjectMapping
Sets which alias (or if not present, the FQN of the class name) this object property is defined at.

Specified by:
setDefinedInAlias in interface InternalObjectMapping

getResourcePropertyConverter

public ResourcePropertyConverter getResourcePropertyConverter()
Specified by:
getResourcePropertyConverter in interface ResourcePropertyMapping


Copyright (c) 2004-2008 The Compass Project.