org.compass.core.mapping.json
Class JsonIdMapping

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.support.AbstractResourcePropertyMapping
          extended by org.compass.core.mapping.json.JsonPropertyMapping
              extended by org.compass.core.mapping.json.JsonIdMapping
All Implemented Interfaces:
InternalMapping, InternalOverrideByNameMapping, InternalResourcePropertyMapping, JsonMapping, Mapping, OverrideByNameMapping, ResourceIdMappingProvider, ResourcePropertyMapping

public class JsonIdMapping
extends JsonPropertyMapping
implements ResourceIdMappingProvider

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from class org.compass.core.mapping.json.JsonPropertyMapping
JsonPropertyMapping.NamingType
 
Nested classes/interfaces inherited from interface org.compass.core.mapping.ResourcePropertyMapping
ResourcePropertyMapping.ExcludeFromAllType, ResourcePropertyMapping.ReverseType
 
Constructor Summary
JsonIdMapping()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 Mapping[] getIdMappings()
           
 Property.Index getIndex()
           
 ResourcePropertyMapping[] getResourceIdMappings()
           
 Property.Store getStore()
           
 boolean isOverrideByName()
          Returns true to control of this mapping overrides by name anotehr mapping within the same multiple mapping container.
 
Methods inherited from class org.compass.core.mapping.json.JsonPropertyMapping
copy, getFormat, getFullPath, getNamingType, getResourcePropertyConverter, getValueConverter, getValueConverterName, isDynamic, setDynamic, setFormat, setFullPath, setNamingType, setOverrideByName, setValueConverter, setValueConverterName
 
Methods inherited from class org.compass.core.mapping.support.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getExcludeFromAll, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, getTermVector, hasNullValue, isInternal, isOmitNorms, isOmitTf, setAnalyzer, setBoost, setExcludeFromAll, setIndex, setInternal, setName, setNullValue, setOmitNorms, setOmitTf, setReverse, setRootAlias, setSpellCheck, setStore, setTermVector
 
Methods inherited from class org.compass.core.mapping.support.AbstractMapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, 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, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.ResourcePropertyMapping
getAnalyzer, getBoost, getExcludeFromAll, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, getTermVector, hasNullValue, isInternal, isOmitNorms, isOmitTf
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 
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

JsonIdMapping

public JsonIdMapping()
Method Detail

getIdMappings

public Mapping[] getIdMappings()
Specified by:
getIdMappings in interface ResourceIdMappingProvider

getResourceIdMappings

public ResourcePropertyMapping[] getResourceIdMappings()
Specified by:
getResourceIdMappings in interface ResourceIdMappingProvider

getIndex

public Property.Index getIndex()
Specified by:
getIndex in interface ResourcePropertyMapping
Overrides:
getIndex in class AbstractResourcePropertyMapping

getStore

public Property.Store getStore()
Specified by:
getStore in interface ResourcePropertyMapping
Overrides:
getStore in class AbstractResourcePropertyMapping

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
Overrides:
isOverrideByName in class JsonPropertyMapping

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
Overrides:
copy in class JsonPropertyMapping


Copyright (c) 2004-2008 The Compass Project.