Class LegacyFallbackResolver

java.lang.Object
org.wickedsource.docxstamper.replace.typeresolver.LegacyFallbackResolver
All Implemented Interfaces:
ObjectResolver

@Deprecated(since="1.6.7", forRemoval=true) public class LegacyFallbackResolver extends Object implements ObjectResolver
Deprecated, for removal: This API element is subject to removal in a future version.
as of version 1.6.7, use Resolvers.fallback() instead. LegacyFallbackResolver was capable of mapping any object to their String representation. Now, this is more streamlined and manageable using Resolvers.fallback().
The LegacyFallbackResolver served as a fallback when there was no ITypeResolver available for a certain type. It was capable of mapping all objects to their String value.
Version:
${version}
Author:
Joseph Verron
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks if the given object can be resolved.
    org.docx4j.wml.R
    resolve(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, String placeholder, Object object)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Resolves the placeholder in the given document with the provided object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LegacyFallbackResolver

      public LegacyFallbackResolver()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • canResolve

      public boolean canResolve(Object object)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ObjectResolver
      Checks if the given object can be resolved.
      Specified by:
      canResolve in interface ObjectResolver
      Parameters:
      object - the object to be resolved
      Returns:
      true if the object can be resolved, false otherwise
    • resolve

      public org.docx4j.wml.R resolve(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, String placeholder, Object object)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ObjectResolver
      Resolves the placeholder in the given document with the provided object.
      Specified by:
      resolve in interface ObjectResolver
      Parameters:
      document - the WordprocessingMLPackage document in which to resolve the placeholder
      placeholder - the placeholder value to be replaced
      object - the object to be used for resolving the placeholder
      Returns:
      the resolved value for the placeholder