Class RawRefConverter

java.lang.Object
cdc.converters.RawRefConverter
All Implemented Interfaces:
Converter<Object,Object>, Function<Object,Object>

public final class RawRefConverter extends Object implements Converter<Object,Object>
  • Constructor Details

    • RawRefConverter

      public RawRefConverter(String name)
  • Method Details

    • getName

      public String getName()
      Returns:
      The delegate name.
    • resolve

      public void resolve(cdc.util.lang.FailureReaction reaction)
      Resolves the delegate.

      The delegate is searched only the first time this method is called.

      Parameters:
      reaction - The reaction to adopt if resolution fails.
    • getResolutionStatus

      public cdc.util.refs.ResolutionStatus getResolutionStatus()
    • getDelegate

      public Converter<?,?> getDelegate()
      Returns:
      The associated delegate, possibly null if resolution is not yet done or failed.
    • apply

      public Object apply(Object value)
      Specified by:
      apply in interface Function<Object,Object>
    • getSourceClass

      public Class<Object> getSourceClass()
      Specified by:
      getSourceClass in interface Converter<Object,Object>
      Returns:
      The class of source objects.
    • getTargetClass

      public Class<Object> getTargetClass()
      Specified by:
      getTargetClass in interface Converter<Object,Object>
      Returns:
      The class of target objects.
    • getParams

      public Args getParams()
      Specified by:
      getParams in interface Converter<Object,Object>
      Returns:
      The parameters used to configure this converter.
    • toString

      public String toString()
      Overrides:
      toString in class Object