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

public class JsonPropertyMapping
extends AbstractResourcePropertyMapping
implements JsonMapping, ResourcePropertyMapping, InternalOverrideByNameMapping

Author:
kimchy

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.
 Naming getNamingType()
           
 ResourcePropertyConverter getResourcePropertyConverter()
           
 Converter getValueConverter()
           
 String getValueConverterName()
           
 boolean isDynamic()
           
 boolean isOverrideByName()
          Returns true to control of this mapping overrides by name anotehr mapping within the same multiple mapping container.
 void setDynamic(boolean dynamic)
           
 void setFormat(String format)
           
 void setFullPath(String fullPath)
          Sets the full path (dot path notation) of the given root.
 void setNamingType(Naming 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, getOriginalName, getReverse, getRootAlias, getSpellCheck, getStore, 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, getIndex, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, getStore, 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

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

Specified by:
setFullPath in interface JsonMapping

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

setOverrideByName

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

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 Naming getNamingType()

setNamingType

public void setNamingType(Naming namingType)

isDynamic

public boolean isDynamic()

setDynamic

public void setDynamic(boolean dynamic)

getResourcePropertyConverter

public ResourcePropertyConverter getResourcePropertyConverter()
Specified by:
getResourcePropertyConverter in interface ResourcePropertyMapping
Overrides:
getResourcePropertyConverter in class AbstractResourcePropertyMapping


Copyright (c) 2004-2009 The Compass Project.