org.compass.core.mapping.osem
Class ClassDynamicPropertyMapping

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.osem.AbstractAccessorMapping
          extended by org.compass.core.mapping.osem.ClassDynamicPropertyMapping
All Implemented Interfaces:
InternalMapping, InternalOverrideByNameMapping, Mapping, InternalObjectMapping, InternalOsemMapping, ObjectMapping, OsemMapping, OverrideByNameMapping

public class ClassDynamicPropertyMapping
extends AbstractAccessorMapping
implements InternalOverrideByNameMapping

Author:
kimchy

Nested Class Summary
static class ClassDynamicPropertyMapping.ObjectType
           
static class ClassDynamicPropertyMapping.ValueType
           
 
Constructor Summary
ClassDynamicPropertyMapping()
           
 
Method Summary
 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.
 ClassDynamicPropertyMapping.ValueType getMapValueType()
           
 ResourcePropertyConverter getNameConverter()
           
 String getNameConverterName()
           
 String getNameFormat()
           
 Getter getNameGetter()
           
 String getNamePrefix()
           
 String getNameProperty()
           
 ClassDynamicPropertyMapping.ObjectType getObjectType()
           
 InternalResourcePropertyMapping getResourcePropertyMapping()
           
 ResourcePropertyConverter getValueConverter()
           
 String getValueConverterName()
           
 String getValueFormat()
           
 Getter getValueGetter()
           
 String getValueProperty()
           
 ClassDynamicPropertyMapping.ValueType getValueType()
           
 boolean isOverrideByName()
          Returns true to control of this mapping overrides by name anotehr mapping within the same multiple mapping container.
 void setMapValueType(ClassDynamicPropertyMapping.ValueType mapValueType)
           
 void setNameConverter(ResourcePropertyConverter nameConverter)
           
 void setNameConverterName(String nameConverterName)
           
 void setNameFormat(String nameFormat)
           
 void setNameGetter(Getter nameGetter)
           
 void setNamePrefix(String namePrefix)
           
 void setNameProperty(String nameProperty)
           
 void setObjectType(ClassDynamicPropertyMapping.ObjectType objectType)
           
 void setOverrideByName(boolean overrideByName)
           
 void setResourcePropertyMapping(InternalResourcePropertyMapping resourcePropertyMapping)
           
 void setValueConverter(ResourcePropertyConverter valueConverter)
           
 void setValueConverterName(String valueConverterName)
           
 void setValueFormat(String valueFormat)
           
 void setValueGetter(Getter valueGetter)
           
 void setValueProperty(String valueProperty)
           
 void setValueType(ClassDynamicPropertyMapping.ValueType valueType)
           
 
Methods inherited from class org.compass.core.mapping.osem.AbstractAccessorMapping
copy, getAccessor, getDefinedInAlias, getGetter, getPropertyName, getSetter, hasAccessors, setAccessor, setDefinedInAlias, setGetter, setPropertyName, setSetter
 
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
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 

Constructor Detail

ClassDynamicPropertyMapping

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

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

getNamePrefix

public String getNamePrefix()

setNamePrefix

public void setNamePrefix(String namePrefix)

getNameProperty

public String getNameProperty()

setNameProperty

public void setNameProperty(String nameProperty)

getValueProperty

public String getValueProperty()

setValueProperty

public void setValueProperty(String valueProperty)

getNameGetter

public Getter getNameGetter()

setNameGetter

public void setNameGetter(Getter nameGetter)

getValueGetter

public Getter getValueGetter()

setValueGetter

public void setValueGetter(Getter valueGetter)

getNameConverterName

public String getNameConverterName()

setNameConverterName

public void setNameConverterName(String nameConverterName)

getValueConverterName

public String getValueConverterName()

setValueConverterName

public void setValueConverterName(String valueConverterName)

getNameConverter

public ResourcePropertyConverter getNameConverter()

setNameConverter

public void setNameConverter(ResourcePropertyConverter nameConverter)

getValueConverter

public ResourcePropertyConverter getValueConverter()

setValueConverter

public void setValueConverter(ResourcePropertyConverter valueConverter)

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

setOverrideByName

public void setOverrideByName(boolean overrideByName)
Specified by:
setOverrideByName in interface InternalOverrideByNameMapping

getResourcePropertyMapping

public InternalResourcePropertyMapping getResourcePropertyMapping()

setResourcePropertyMapping

public void setResourcePropertyMapping(InternalResourcePropertyMapping resourcePropertyMapping)

setValueType

public void setValueType(ClassDynamicPropertyMapping.ValueType valueType)

getValueType

public ClassDynamicPropertyMapping.ValueType getValueType()

getMapValueType

public ClassDynamicPropertyMapping.ValueType getMapValueType()

setMapValueType

public void setMapValueType(ClassDynamicPropertyMapping.ValueType mapValueType)

setObjectType

public void setObjectType(ClassDynamicPropertyMapping.ObjectType objectType)

getObjectType

public ClassDynamicPropertyMapping.ObjectType getObjectType()

getNameFormat

public String getNameFormat()

setNameFormat

public void setNameFormat(String nameFormat)

getValueFormat

public String getValueFormat()

setValueFormat

public void setValueFormat(String valueFormat)


Copyright (c) 2004-2009 The Compass Project.