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:
InternalMapping, 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.
 ResourcePropertyMapping.ExcludeFromAllType getExcludeFromAll()
          Json content mapping is always excluded from all
 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()
           
 Property.TermVector getTermVector()
          Json content mapping is alwasy Property.TermVector.NO.
 Boolean isOmitNorms()
          Json content mapping is always true.
 Boolean isOmitTf()
          Json content mapping is always true.
 void setFullPath(String fullPath)
          Sets the full path (dot path notation) of the given root.
 
Methods inherited from class org.compass.core.mapping.support.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, getStore, hasNullValue, isInternal, 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.ResourcePropertyMapping
getAnalyzer, getBoost, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, getStore, hasNullValue, isInternal
 
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
 

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)
Description copied from interface: JsonMapping
Sets the full path (dot path notation) of the given root.

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

getTermVector

public Property.TermVector getTermVector()
Json content mapping is alwasy Property.TermVector.NO.

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

isOmitNorms

public Boolean isOmitNorms()
Json content mapping is always true.

Specified by:
isOmitNorms in interface ResourcePropertyMapping
Overrides:
isOmitNorms in class AbstractResourcePropertyMapping
See Also:
Property.setOmitNorms(boolean)

isOmitTf

public Boolean isOmitTf()
Json content mapping is always true.

Specified by:
isOmitTf in interface ResourcePropertyMapping
Overrides:
isOmitTf in class AbstractResourcePropertyMapping
See Also:
Property.setOmitTf(boolean)

getExcludeFromAll

public ResourcePropertyMapping.ExcludeFromAllType getExcludeFromAll()
Json content mapping is always excluded from all

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

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.