org.compass.core.marshall
Class DefaultMarshallingContext
java.lang.Object
org.compass.core.marshall.DefaultMarshallingContext
- All Implemented Interfaces:
- MarshallingContext
public class DefaultMarshallingContext
- extends Object
- implements MarshallingContext
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMarshallingContext
public DefaultMarshallingContext(CompassMapping mapping,
SearchEngine searchEngine,
ConverterLookup converterLookup,
InternalCompassSession session,
MarshallingStrategy marshallingStrategy)
clearContext
public void clearContext()
- Specified by:
clearContext in interface MarshallingContext
setUnmarshalled
public void setUnmarshalled(ResourceKey key,
Object obj)
- Description copied from interface:
MarshallingContext
- Sets an unmarshalled cache of objects already loaded during
unmarshalling. Allows for handling cyclic references.
- Specified by:
setUnmarshalled in interface MarshallingContext
getUnmarshalled
public Object getUnmarshalled(ResourceKey key)
- Description copied from interface:
MarshallingContext
- Gets an unmarshalled cache of objects already loaded during
unmarshalling. Allows for handling cyclic references.
- Specified by:
getUnmarshalled in interface MarshallingContext
setMarshalled
public void setMarshalled(Object key,
Object value)
- Specified by:
setMarshalled in interface MarshallingContext
getMarshalled
public Object getMarshalled(Object key)
- Specified by:
getMarshalled in interface MarshallingContext
setHandleNulls
public void setHandleNulls(PropertyPath path)
- Description copied from interface:
MarshallingContext
- Sets on the path to use null values
- Specified by:
setHandleNulls in interface MarshallingContext
removeHandleNulls
public void removeHandleNulls(PropertyPath path)
- Description copied from interface:
MarshallingContext
- Removes the fact that a null value should be used.
- Specified by:
removeHandleNulls in interface MarshallingContext
handleNulls
public boolean handleNulls()
- Description copied from interface:
MarshallingContext
- Means that when creating a property, a special null value should be saved
to mark it as null
- Specified by:
handleNulls in interface MarshallingContext
getConverterLookup
public ConverterLookup getConverterLookup()
- Specified by:
getConverterLookup in interface MarshallingContext
getResourceFactory
public ResourceFactory getResourceFactory()
- Specified by:
getResourceFactory in interface MarshallingContext
getSearchEngine
public SearchEngine getSearchEngine()
- Specified by:
getSearchEngine in interface MarshallingContext
getCompassMapping
public CompassMapping getCompassMapping()
- Specified by:
getCompassMapping in interface MarshallingContext
getSession
public InternalCompassSession getSession()
- Specified by:
getSession in interface MarshallingContext
getMarshallingStrategy
public MarshallingStrategy getMarshallingStrategy()
- Specified by:
getMarshallingStrategy in interface MarshallingContext
getAttribute
public Object getAttribute(Object key)
- Specified by:
getAttribute in interface MarshallingContext
setAttribute
public Object setAttribute(Object key,
Object value)
- Specified by:
setAttribute in interface MarshallingContext
removeAttribute
public Object removeAttribute(Object key)
- Specified by:
removeAttribute in interface MarshallingContext
hasAttribute
public boolean hasAttribute(Object key)
- Specified by:
hasAttribute in interface MarshallingContext
removeAttributes
public Map<Object,Object> removeAttributes()
- Specified by:
removeAttributes in interface MarshallingContext
restoreAttributes
public void restoreAttributes(Map<Object,Object> attributes)
- Specified by:
restoreAttributes in interface MarshallingContext
getPropertyNamingStrategy
public PropertyNamingStrategy getPropertyNamingStrategy()
- Specified by:
getPropertyNamingStrategy in interface MarshallingContext
Copyright (c) 2004-2008 The Compass Project.