org.compass.core.mapping
Interface MultipleMapping

All Superinterfaces:
Mapping
All Known Subinterfaces:
AliasMapping, ContractMapping, InternalAliasMapping, InternalContractMapping, InternalMultipleMapping, InternalResourceMapping, JsonObjectMapping, ResourceMapping
All Known Implementing Classes:
AbstractAccessorMultipleMapping, AbstractMultipleMapping, AbstractResourceMapping, ClassBoostPropertyMapping, ClassIdPropertyMapping, ClassMapping, ClassPropertyAnalyzerController, ClassPropertyMapping, DefaultContractMapping, NullResourceMapping, PlainJsonObjectMapping, RawResourceMapping, RootJsonObjectMapping, XmlObjectMapping

public interface MultipleMapping
extends Mapping

A mapping type that can hold interlly multiple mappings (associated with a name).

Author:
kimchy

Method Summary
 Mapping getMapping(int index)
          Returns the mapping at the given index.
 Mapping getMapping(String name)
          Returns the mapping associated with the given name.
 Iterator<Mapping> mappingsIt()
          Returns an iterator over the stored mappings.
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath
 

Method Detail

getMapping

Mapping getMapping(String name)
Returns the mapping associated with the given name. Don't be confused with Mapping.getName(), since the mappings might be saved not under the mapping name (it might be under the mapping path). It really depends on the actual implementation.

Parameters:
name - The name tha mapping was registered under when it was added.
Returns:
The mapping found, or null if nothing was found.

getMapping

Mapping getMapping(int index)
Returns the mapping at the given index.


mappingsIt

Iterator<Mapping> mappingsIt()
Returns an iterator over the stored mappings.



Copyright (c) 2004-2008 The Compass Project.