Class Resolvers.Null2DefaultResolver

java.lang.Object
pro.verron.officestamper.preset.Resolvers.Null2DefaultResolver
All Implemented Interfaces:
ObjectResolver
Enclosing class:
Resolvers

@Deprecated(since="1.6.7") public static class Resolvers.Null2DefaultResolver extends Object implements ObjectResolver
Deprecated.
will not be removed, but will be made package-private
The Null2DefaultResolver class is an implementation of the ObjectResolver interface that resolves null objects by creating a run with a default text value.
Since:
1.6.7
Version:
${version}
Author:
Joseph Verron
  • Constructor Details

    • Null2DefaultResolver

      public Null2DefaultResolver(String text)
      Deprecated.
  • Method Details

    • canResolve

      public boolean canResolve(@Nullable Object object)
      Deprecated.
      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 expression, Object object)
      Deprecated.
      Description copied from interface: ObjectResolver
      Resolves the expression in the given document with the provided object.
      Specified by:
      resolve in interface ObjectResolver
      Parameters:
      document - the WordprocessingMLPackage document in which to resolve the expression
      expression - the expression value to be replaced
      object - the object to be used for resolving the expression
      Returns:
      the resolved value for the expression
    • defaultValue

      public String defaultValue()
      Deprecated.
      Retrieves the default value of the Resolvers.Null2DefaultResolver object.
      Returns:
      the default value of the Resolvers.Null2DefaultResolver object as a String