org.compass.core.mapping.json
Class PlainJsonObjectMapping
java.lang.Object
org.compass.core.mapping.support.AbstractMapping
org.compass.core.mapping.support.AbstractMultipleMapping
org.compass.core.mapping.json.PlainJsonObjectMapping
- All Implemented Interfaces:
- InternalMapping, InternalMultipleMapping, JsonMapping, JsonObjectMapping, Mapping, MultipleMapping
public class PlainJsonObjectMapping
- extends AbstractMultipleMapping
- implements JsonObjectMapping
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainJsonObjectMapping
public PlainJsonObjectMapping()
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
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-2008 The Compass Project.