org.compass.core.mapping.json
Class JsonContentMapping

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.JsonContentMapping
All Implemented Interfaces:
InternalResourcePropertyMapping, JsonMapping, Mapping, ResourcePropertyMapping

public class JsonContentMapping
extends AbstractResourcePropertyMapping
implements ResourcePropertyMapping, JsonMapping

Author:
kimchy

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.compass.core.mapping.ResourcePropertyMapping
ResourcePropertyMapping.ExcludeFromAllType, ResourcePropertyMapping.ReverseType
 
Constructor Summary
JsonContentMapping()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 String getFullPath()
          Returns a dot path to the mapping from the root.
 Property.Index getIndex()
          JSON content mapping is always Property.Index.NO.
 ResourcePropertyConverter getResourcePropertyConverter()
           
 boolean isExcludeFromAll()
          Xml content mapping is always excluded from all
 void setFullPath(String fullPath)
           
 
Methods inherited from class org.compass.core.mapping.support.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getExcludeFromAll, getNullValue, getReverse, getRootAlias, getSpellCheck, getStore, getTermVector, hasNullValue, isInternal, isOmitNorms, isOmitTf, setAnalyzer, setBoost, setExcludeFromAll, setIndex, setInternal, 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, 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.ResourcePropertyMapping
getAnalyzer, getBoost, getExcludeFromAll, getNullValue, getReverse, getRootAlias, getSpellCheck, getStore, getTermVector, hasNullValue, isInternal, isOmitNorms, isOmitTf
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 

Constructor Detail

JsonContentMapping

public JsonContentMapping()
Method Detail

getFullPath

public String getFullPath()
Description copied from interface: JsonMapping
Returns a dot path to the mapping from the root.

Specified by:
getFullPath in interface JsonMapping

setFullPath

public void setFullPath(String fullPath)
Specified by:
setFullPath in interface JsonMapping

getIndex

public Property.Index getIndex()
JSON content mapping is always Property.Index.NO.

Specified by:
getIndex in interface ResourcePropertyMapping
Overrides:
getIndex in class AbstractResourcePropertyMapping

isExcludeFromAll

public boolean isExcludeFromAll()
Xml content mapping is always excluded from all


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

getResourcePropertyConverter

public ResourcePropertyConverter getResourcePropertyConverter()
Specified by:
getResourcePropertyConverter in interface ResourcePropertyMapping


Copyright (c) 2004-2008 The Compass Project.