org.compass.core.mapping.osem
Class ClassPropertyMetaDataMapping

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

public class ClassPropertyMetaDataMapping
extends AbstractResourcePropertyMapping
implements ObjectMapping

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()
           
 String getPropertyName()
          Returns the class property name of the object mapping.
 Setter getSetter()
           
 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)
           
 void setPropertyName(String propertyName)
          Sets the class property name of the object mapping.
 void setSetter(Setter setter)
           
 
Methods inherited from class org.compass.core.mapping.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getExcludeFromAll, getIndex, getNullValue, getReverse, getRootAlias, getSpellCheck, getStore, 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.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

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()
Specified by:
getGetter in interface ObjectMapping

setGetter

public void setGetter(Getter getter)
Specified by:
setGetter in interface ObjectMapping

getSetter

public Setter getSetter()
Specified by:
getSetter in interface ObjectMapping

setSetter

public void setSetter(Setter setter)
Specified by:
setSetter in interface ObjectMapping

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: ObjectMapping
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 ObjectMapping

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: ObjectMapping
Sets the class property name of the object mapping.

Specified by:
setPropertyName in interface ObjectMapping

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: ObjectMapping
Sets which alias (or if not present, the FQN of the class name) this object property is defined at.

Specified by:
setDefinedInAlias in interface ObjectMapping


Copyright (c) 2004-2008 The Compass Project.