org.compass.core.mapping.osem
Class AbstractCollectionMapping
java.lang.Object
org.compass.core.mapping.support.AbstractMapping
org.compass.core.mapping.osem.AbstractAccessorMapping
org.compass.core.mapping.osem.AbstractCollectionMapping
- All Implemented Interfaces:
- InternalMapping, InternalOverrideByNameMapping, Mapping, InternalObjectMapping, InternalOsemMapping, ObjectMapping, OsemMapping, OverrideByNameMapping
- Direct Known Subclasses:
- ArrayMapping, CollectionMapping
public abstract class AbstractCollectionMapping
- extends AbstractAccessorMapping
- implements InternalOverrideByNameMapping
- Author:
- kimchy
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCollectionMapping
public AbstractCollectionMapping()
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()
- 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
getCollectionType
public AbstractCollectionMapping.CollectionType getCollectionType()
setCollectionType
public void setCollectionType(AbstractCollectionMapping.CollectionType collectionType)
Copyright (c) 2004-2008 The Compass Project.