org.compass.core.mapping.json
Class JsonPropertyMapping

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
All Implemented Interfaces:
InternalResourcePropertyMapping, JsonMapping, Mapping, OverrideByNameMapping, ResourcePropertyMapping
Direct Known Subclasses:
JsonBoostPropertyMapping, JsonIdMapping, JsonPropertyAnalyzerController

public class JsonPropertyMapping
extends AbstractResourcePropertyMapping
implements JsonMapping, ResourcePropertyMapping, OverrideByNameMapping

Author:
kimchy

Nested Class Summary
static class JsonPropertyMapping.NamingType
           
 
Nested classes/interfaces inherited from interface org.compass.core.mapping.ResourcePropertyMapping
ResourcePropertyMapping.ExcludeFromAllType, ResourcePropertyMapping.ReverseType
 
Constructor Summary
JsonPropertyMapping()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
protected  void copy(JsonPropertyMapping copy)
           
 String getFormat()
           
 String getFullPath()
          Returns a dot path to the mapping from the root.
 JsonPropertyMapping.NamingType getNamingType()
           
 ResourcePropertyConverter getResourcePropertyConverter()
           
 Converter getValueConverter()
           
 String getValueConverterName()
           
 boolean isOverrideByName()
           
 void setFormat(String format)
           
 void setFullPath(String fullPath)
           
 void setNamingType(JsonPropertyMapping.NamingType namingType)
           
 void setOverrideByName(boolean overrideByName)
           
 void setValueConverter(Converter valueConverter)
           
 void setValueConverterName(String valueConverterName)
           
 
Methods inherited from class org.compass.core.mapping.support.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getExcludeFromAll, getIndex, 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.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath
 
Methods inherited from interface org.compass.core.mapping.ResourcePropertyMapping
getAnalyzer, getBoost, getExcludeFromAll, getIndex, 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

JsonPropertyMapping

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

copy

protected void copy(JsonPropertyMapping copy)

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

isOverrideByName

public boolean isOverrideByName()
Specified by:
isOverrideByName in interface OverrideByNameMapping

setOverrideByName

public void setOverrideByName(boolean overrideByName)
Specified by:
setOverrideByName in interface OverrideByNameMapping

getValueConverter

public Converter getValueConverter()

setValueConverter

public void setValueConverter(Converter valueConverter)

getValueConverterName

public String getValueConverterName()

setValueConverterName

public void setValueConverterName(String valueConverterName)

getFormat

public String getFormat()

setFormat

public void setFormat(String format)

getNamingType

public JsonPropertyMapping.NamingType getNamingType()

setNamingType

public void setNamingType(JsonPropertyMapping.NamingType namingType)

getResourcePropertyConverter

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


Copyright (c) 2004-2008 The Compass Project.