Class ConversionContext

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ConversionContext
    extends java.lang.Object
    implements java.lang.Cloneable
    A conversion context is a container for contextual information required to perform a value conversion.

    This class is intended to be used in a Builder-style pattern.
    Author:
    Rene Schneider - initial API and implementation
    • Field Detail

      • skipBeanToMapDefaultConversion

        protected boolean skipBeanToMapDefaultConversion
        Whether the default conversion applied to Java Bean classes ( ObjectToMap) shall be skipped in the conversion search and no conversion at all shall be done instead.
      • unresolvableVariableHandlingPolicy

        protected UnresolvableVariableHandling unresolvableVariableHandlingPolicy
        The way in which unresolvable variables shall be treated.
      • comparisonResult

        protected ComparisonResult comparisonResult
        In case of a value being converted which belongs to a comparison that has been executed, the result of said comparison can be provided.
      • properties

        protected java.util.Map<java.lang.String,​java.lang.Object> properties
        Map to contain arbitrary information.
    • Constructor Detail

      • ConversionContext

        public ConversionContext()
        Creates an instance with the default initial values. SHOULD NEVER BE CALLED DIRECTLY!!! Use a Guice-injected Provider instead to create an instance!