org.compass.core.marshall
Interface MarshallingContext
- All Known Implementing Classes:
- DefaultMarshallingContext
public interface MarshallingContext
- Author:
- kimchy
getResourceFactory
ResourceFactory getResourceFactory()
getSearchEngine
SearchEngine getSearchEngine()
getCompassMapping
CompassMapping getCompassMapping()
getConverterLookup
ConverterLookup getConverterLookup()
getSession
InternalCompassSession getSession()
getMarshallingStrategy
MarshallingStrategy getMarshallingStrategy()
getPropertyNamingStrategy
PropertyNamingStrategy getPropertyNamingStrategy()
setAttribute
Object setAttribute(Object key,
Object value)
getAttribute
Object getAttribute(Object key)
removeAttribute
Object removeAttribute(Object key)
hasAttribute
boolean hasAttribute(Object key)
removeAttributes
Map<Object,Object> removeAttributes()
restoreAttributes
void restoreAttributes(Map<Object,Object> attributes)
setUnmarshalled
void setUnmarshalled(ResourceKey key,
Object obj)
- Sets an unmarshalled cache of objects already loaded during
unmarshalling. Allows for handling cyclic references.
getUnmarshalled
Object getUnmarshalled(ResourceKey key)
- Gets an unmarshalled cache of objects already loaded during
unmarshalling. Allows for handling cyclic references.
setMarshalled
void setMarshalled(Object key,
Object value)
getMarshalled
Object getMarshalled(Object key)
clearContext
void clearContext()
handleNulls
boolean handleNulls()
- Means that when creating a property, a special null value should be saved
to mark it as null
setHandleNulls
void setHandleNulls(PropertyPath path)
- Sets on the path to use null values
removeHandleNulls
void removeHandleNulls(PropertyPath path)
- Removes the fact that a null value should be used.
Copyright (c) 2004-2008 The Compass Project.