org.compass.core.mapping.osem
Class AbstractCollectionMapping

java.lang.Object
  extended by org.compass.core.mapping.AbstractMapping
      extended by org.compass.core.mapping.osem.AbstractAccessorMapping
          extended by org.compass.core.mapping.osem.AbstractCollectionMapping
All Implemented Interfaces:
Mapping, ObjectMapping, OsemMapping, OverrideByNameMapping
Direct Known Subclasses:
ArrayMapping, CollectionMapping

public abstract class AbstractCollectionMapping
extends AbstractAccessorMapping
implements OverrideByNameMapping

Author:
kimchy

Nested Class Summary
static class AbstractCollectionMapping.CollectionType
           
 
Constructor Summary
AbstractCollectionMapping()
           
 
Method Summary
 boolean canBeCollectionWrapped()
          Returns true if this object mapping can be wrapped with a Collection or an Array.
 void copy(AbstractCollectionMapping copy)
           
 AbstractCollectionMapping.CollectionType getCollectionType()
           
 PropertyPath getCollectionTypePath()
           
 PropertyPath getColSizePath()
           
 Mapping getElementMapping()
           
 boolean isOverrideByName()
           
 void setCollectionType(AbstractCollectionMapping.CollectionType collectionType)
           
 void setCollectionTypePath(PropertyPath collectionTypePath)
           
 void setColSizePath(PropertyPath colSizePath)
           
 void setElementMapping(Mapping elementMapping)
           
 void setOverrideByName(boolean overrideByName)
           
 
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.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, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

Constructor Detail

AbstractCollectionMapping

public AbstractCollectionMapping()
Method Detail

copy

public void copy(AbstractCollectionMapping copy)

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

getElementMapping

public Mapping getElementMapping()

setElementMapping

public void setElementMapping(Mapping elementMapping)

getCollectionTypePath

public PropertyPath getCollectionTypePath()

setCollectionTypePath

public void setCollectionTypePath(PropertyPath collectionTypePath)

getColSizePath

public PropertyPath getColSizePath()

setColSizePath

public void setColSizePath(PropertyPath colSizePath)

isOverrideByName

public boolean isOverrideByName()
Specified by:
isOverrideByName in interface OverrideByNameMapping

setOverrideByName

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

getCollectionType

public AbstractCollectionMapping.CollectionType getCollectionType()

setCollectionType

public void setCollectionType(AbstractCollectionMapping.CollectionType collectionType)


Copyright (c) 2004-2008 The Compass Project.