org.compass.core.mapping.internal
Class DefaultContractMapping

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.support.AbstractMultipleMapping
          extended by org.compass.core.mapping.internal.DefaultContractMapping
All Implemented Interfaces:
AliasMapping, ContractMapping, InternalAliasMapping, InternalContractMapping, InternalMapping, InternalMultipleMapping, Mapping, MultipleMapping

public class DefaultContractMapping
extends AbstractMultipleMapping
implements InternalContractMapping

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.mapping.support.AbstractMultipleMapping
mappings, mappingsByNameMap
 
Constructor Summary
DefaultContractMapping()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 String getAlias()
          Returns the alias this mapping is associated with.
 String getAnalyzer()
          Returns the analyzer lookup name of this alias mapping.
 String[] getExtendedAliases()
          Returns a list of aliases that this alias extends.
 String[] getExtendingAliases()
          Returns a list of all the aliases that extend this mapping.
 void setAlias(String alias)
          Sets the alias this mapping is associated with.
 void setAnalyzer(String analyzer)
          Sets the analyzer lookup name of this alias mapping.
 void setExtendedAliases(String[] extendedMappings)
          Sets a list of aliases that this alias extends.
 void setExtendingAliases(String[] extendingAliases)
          Sets a list of all the aliases that extend this mapping.
 InternalAliasMapping shallowCopy()
          Performs a shalow copy of this mapping, not including any internal mappings belonging to MultipleMapping.
 
Methods inherited from class org.compass.core.mapping.support.AbstractMultipleMapping
addMapping, addMappings, clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, replaceMappings, shallowCopy
 
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.MultipleMapping
getMapping, getMapping, mappingsIt
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.MultipleMapping
getMapping, getMapping, mappingsIt
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.internal.InternalMultipleMapping
addMapping
 
Methods inherited from interface org.compass.core.mapping.MultipleMapping
getMapping, getMapping, mappingsIt
 
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

DefaultContractMapping

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

shallowCopy

public InternalAliasMapping shallowCopy()
Description copied from interface: AliasMapping
Performs a shalow copy of this mapping, not including any internal mappings belonging to MultipleMapping.

Specified by:
shallowCopy in interface AliasMapping

getAlias

public String getAlias()
Description copied from interface: AliasMapping
Returns the alias this mapping is associated with.

Specified by:
getAlias in interface AliasMapping

setAlias

public void setAlias(String alias)
Description copied from interface: InternalAliasMapping
Sets the alias this mapping is associated with.

Specified by:
setAlias in interface InternalAliasMapping

getExtendedAliases

public String[] getExtendedAliases()
Description copied from interface: AliasMapping
Returns a list of aliases that this alias extends.

Specified by:
getExtendedAliases in interface AliasMapping

setExtendedAliases

public void setExtendedAliases(String[] extendedMappings)
Description copied from interface: InternalAliasMapping
Sets a list of aliases that this alias extends.

Specified by:
setExtendedAliases in interface InternalAliasMapping

getExtendingAliases

public String[] getExtendingAliases()
Description copied from interface: AliasMapping
Returns a list of all the aliases that extend this mapping. Note, this is a list of all the aliases down the food chain, not just the first ones.

Specified by:
getExtendingAliases in interface AliasMapping

setExtendingAliases

public void setExtendingAliases(String[] extendingAliases)
Description copied from interface: InternalAliasMapping
Sets a list of all the aliases that extend this mapping. Note, this is a list of all the aliases down the food chain, not just the first ones.

Specified by:
setExtendingAliases in interface InternalAliasMapping

getAnalyzer

public String getAnalyzer()
Description copied from interface: AliasMapping
Returns the analyzer lookup name of this alias mapping.

Specified by:
getAnalyzer in interface AliasMapping

setAnalyzer

public void setAnalyzer(String analyzer)
Description copied from interface: InternalAliasMapping
Sets the analyzer lookup name of this alias mapping.

Specified by:
setAnalyzer in interface InternalAliasMapping


Copyright (c) 2004-2009 The Compass Project.