net.entropysoft.transmorph
Class ConversionContext

java.lang.Object
  extended by net.entropysoft.transmorph.ConversionContext

public class ConversionContext
extends Object

The conversion context.

You can add custom objects to the context using add method.

Author:
Cedric Chabanois (cchabanois at gmail.com)

Constructor Summary
ConversionContext()
           
 
Method Summary
 void add(String key, Object value)
          add an object to the context
 void get(String key)
          get object from the context
 ConvertedObjectPool getConvertedObjectPool()
          get the pool of converted objects
 UsedConverters getUsedConverters()
          get the converters that have been used for conversion
 boolean isStoreUsedConverters()
           
 void remove(String key)
          remove object from the context
 void setStoreUsedConverters(boolean storeUsedConverters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionContext

public ConversionContext()
Method Detail

isStoreUsedConverters

public boolean isStoreUsedConverters()

setStoreUsedConverters

public void setStoreUsedConverters(boolean storeUsedConverters)

getConvertedObjectPool

public ConvertedObjectPool getConvertedObjectPool()
get the pool of converted objects

Returns:

getUsedConverters

public UsedConverters getUsedConverters()
get the converters that have been used for conversion

Returns:

add

public void add(String key,
                Object value)
add an object to the context

Parameters:
key -
value -

get

public void get(String key)
get object from the context

Parameters:
key -

remove

public void remove(String key)
remove object from the context

Parameters:
key -


Copyright © 2008-2010 EntropySoft. All Rights Reserved.