|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.mapping.support.AbstractMapping
org.compass.core.mapping.support.AbstractResourcePropertyMapping
org.compass.core.mapping.osem.ClassPropertyMetaDataMapping
public class ClassPropertyMetaDataMapping
| 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 |
|---|
public ClassPropertyMetaDataMapping()
| Method Detail |
|---|
public Mapping copy()
Mapping
copy in interface Mappingpublic boolean hasAccessors()
hasAccessors in interface OsemMappingpublic boolean canBeCollectionWrapped()
ObjectMappingtrue if this object mapping can be wrapped
with a Collection or an Array.
canBeCollectionWrapped in interface ObjectMappingpublic Getter getGetter()
ObjectMapping
getGetter in interface ObjectMappingpublic void setGetter(Getter getter)
InternalObjectMapping
setGetter in interface InternalObjectMappingpublic Setter getSetter()
ObjectMapping
getSetter in interface ObjectMappingpublic void setSetter(Setter setter)
InternalObjectMapping
setSetter in interface InternalObjectMappingpublic boolean canActAsPropertyId()
true if this type of property
can act as the Java Bean Property meta-data id.
public String getAccessor()
ObjectMappingPropertyAccessor
(this can be either the FQN of the class name or a regsitered type in the configuration, see
PropertyAccessorFactory.
getAccessor in interface ObjectMappingpublic void setAccessor(String accessor)
InternalObjectMappingPropertyAccessor
(this can be either the FQN of the class name or a regsitered type in the configuration, see
PropertyAccessorFactory.
setAccessor in interface InternalObjectMappingpublic String getPropertyName()
ObjectMapping
getPropertyName in interface ObjectMappingpublic void setPropertyName(String propertyName)
InternalObjectMapping
setPropertyName in interface InternalObjectMappingpublic String getDefinedInAlias()
ObjectMapping
getDefinedInAlias in interface ObjectMappingpublic void setDefinedInAlias(String definedInAlias)
InternalObjectMapping
setDefinedInAlias in interface InternalObjectMappingpublic ResourcePropertyConverter getResourcePropertyConverter()
getResourcePropertyConverter in interface ResourcePropertyMapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||