Package cdc.converters
Class RawRefConverter
- java.lang.Object
-
- cdc.converters.RawRefConverter
-
-
Field Summary
-
Fields inherited from interface cdc.converters.Converter
META_FARGS, SOURCE_CLASS, TARGET_CLASS
-
-
Constructor Summary
Constructors Constructor Description RawRefConverter(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectapply(Object value)Converter<?,?>getDelegate()StringgetName()ArgsgetParams()cdc.util.refs.ResolutionStatusgetResolutionStatus()Class<Object>getSourceClass()Class<Object>getTargetClass()voidresolve(cdc.util.lang.FailureReaction reaction)Resolves the delegate.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cdc.converters.Converter
adapt, andThen, andThenRaw, applyRaw, areCompliantSourceAndTargetClasses, areMatchingSourceAndTargetClasses, cast, compose, composeRaw, getWrappedSourceClass, getWrappedTargetClass, isCompliantSourceClass, isCompliantTargetClass, isMatchingSourceClass, isMatchingTargetClass, orElse, orElseRaw
-
-
-
-
Constructor Detail
-
RawRefConverter
public RawRefConverter(String name)
-
-
Method Detail
-
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
nullif resolution is not yet done or failed.
-
getSourceClass
public Class<Object> getSourceClass()
- Specified by:
getSourceClassin interfaceConverter<Object,Object>- Returns:
- The class of source objects.
-
getTargetClass
public Class<Object> getTargetClass()
- Specified by:
getTargetClassin interfaceConverter<Object,Object>- Returns:
- The class of target objects.
-
getParams
public Args getParams()
-
-