org.compass.core.mapping
Class ContractMapping

java.lang.Object
  extended by org.compass.core.mapping.AbstractMapping
      extended by org.compass.core.mapping.AbstractMultipleMapping
          extended by org.compass.core.mapping.ContractMapping
All Implemented Interfaces:
AliasMapping, Mapping, MultipleMapping

public class ContractMapping
extends AbstractMultipleMapping
implements AliasMapping

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.mapping.AbstractMultipleMapping
mappings, mappingsByNameMap
 
Constructor Summary
ContractMapping()
           
 
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()
           
 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)
           
 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.
 AliasMapping shallowCopy()
          Performs a shalow copy of this mapping, not including any internal mappings belonging to MultipleMapping.
 
Methods inherited from class org.compass.core.mapping.AbstractMultipleMapping
addMapping, addMappings, clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, replaceMappings, shallowCopy
 
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.MultipleMapping
addMapping, getMapping, getMapping, mappingsIt
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

Constructor Detail

ContractMapping

public ContractMapping()
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 AliasMapping 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: AliasMapping
Sets the alias this mapping is associated with.

Specified by:
setAlias in interface AliasMapping

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: AliasMapping
Sets a list of aliases that this alias extends.

Specified by:
setExtendedAliases in interface AliasMapping

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: AliasMapping
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 AliasMapping

getAnalyzer

public String getAnalyzer()
Specified by:
getAnalyzer in interface AliasMapping

setAnalyzer

public void setAnalyzer(String analyzer)
Specified by:
setAnalyzer in interface AliasMapping


Copyright (c) 2004-2008 The Compass Project.