org.compass.core.mapping.json
Class PlainJsonObjectMapping

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.support.AbstractMultipleMapping
          extended by org.compass.core.mapping.json.PlainJsonObjectMapping
All Implemented Interfaces:
InternalMapping, InternalMultipleMapping, JsonMapping, JsonObjectMapping, Mapping, MultipleMapping

public class PlainJsonObjectMapping
extends AbstractMultipleMapping
implements JsonObjectMapping

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.mapping.support.AbstractMultipleMapping
mappings, mappingsByNameMap
 
Constructor Summary
PlainJsonObjectMapping()
           
 
Method Summary
 int addMapping(Mapping mapping)
          Adds the mapping.
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
 Naming getDynamicNaming()
           
 String getFullPath()
          Returns a dot path to the mapping from the root.
 boolean isDynamic()
           
 void setDynamic(boolean dynamic)
           
 void setDynamicNaming(Naming dynamicNaming)
           
 void setFullPath(String fullPath)
          Sets the full path (dot path notation) of the given root.
 
Methods inherited from class org.compass.core.mapping.support.AbstractMultipleMapping
addMappings, clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, replaceMappings, shallowCopy
 
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.MultipleMapping
getMapping, getMapping, mappingsIt
 
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
 

Constructor Detail

PlainJsonObjectMapping

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

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

isDynamic

public boolean isDynamic()
Specified by:
isDynamic in interface JsonObjectMapping

setDynamic

public void setDynamic(boolean dynamic)
Specified by:
setDynamic in interface JsonObjectMapping

getDynamicNaming

public Naming getDynamicNaming()
Specified by:
getDynamicNaming in interface JsonObjectMapping

setDynamicNaming

public void setDynamicNaming(Naming dynamicNaming)
Specified by:
setDynamicNaming in interface JsonObjectMapping

addMapping

public int addMapping(Mapping mapping)
Description copied from interface: InternalMultipleMapping
Adds the mapping. Returns the location that the mapping was added to.

Specified by:
addMapping in interface InternalMultipleMapping
Overrides:
addMapping in class AbstractMultipleMapping
Parameters:
mapping - The mapping to add
Returns:
The location the mapping was added to.


Copyright (c) 2004-2009 The Compass Project.