org.compass.core.marshall
Interface MarshallingContext

All Known Implementing Classes:
DefaultMarshallingContext

public interface MarshallingContext

Author:
kimchy

Method Summary
 void clearContext()
           
 Object getAttribute(Object key)
           
 CompassMapping getCompassMapping()
           
 ConverterLookup getConverterLookup()
           
 Object getMarshalled(Object key)
           
 MarshallingStrategy getMarshallingStrategy()
           
 PropertyNamingStrategy getPropertyNamingStrategy()
           
 ResourceFactory getResourceFactory()
           
 SearchEngine getSearchEngine()
           
 InternalCompassSession getSession()
           
 Object getUnmarshalled(ResourceKey key)
          Gets an unmarshalled cache of objects already loaded during unmarshalling.
 boolean handleNulls()
          Means that when creating a property, a special null value should be saved to mark it as null
 boolean hasAttribute(Object key)
           
 Object removeAttribute(Object key)
           
 Map<Object,Object> removeAttributes()
           
 void removeHandleNulls(PropertyPath path)
          Removes the fact that a null value should be used.
 void restoreAttributes(Map<Object,Object> attributes)
           
 void setAttribute(Object key, Object value)
           
 void setHandleNulls(PropertyPath path)
          Sets on the path to use null values
 void setMarshalled(Object key, Object value)
           
 void setUnmarshalled(ResourceKey key, Object obj)
          Sets an unmarshalled cache of objects already loaded during unmarshalling.
 

Method Detail

getResourceFactory

ResourceFactory getResourceFactory()

getSearchEngine

SearchEngine getSearchEngine()

getCompassMapping

CompassMapping getCompassMapping()

getConverterLookup

ConverterLookup getConverterLookup()

getSession

InternalCompassSession getSession()

getMarshallingStrategy

MarshallingStrategy getMarshallingStrategy()

getPropertyNamingStrategy

PropertyNamingStrategy getPropertyNamingStrategy()

setAttribute

void 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.