Module pro.verron.officestamper
Package pro.verron.officestamper.preset
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanResolve(Object object) Deprecated.Checks if the given object can be resolved.Deprecated.Retrieves the default value of theResolvers.Null2DefaultResolverobject.org.docx4j.wml.Rresolve(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, String expression, Object object) Deprecated.Resolves the expression 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, waitMethods inherited from interface pro.verron.officestamper.api.ObjectResolver
resolve
-
Constructor Details
-
Null2DefaultResolver
Deprecated.
-
-
Method Details
-
canResolve
Deprecated.Description copied from interface:ObjectResolverChecks if the given object can be resolved.- Specified by:
canResolvein interfaceObjectResolver- 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:ObjectResolverResolves the expression in the given document with the provided object.- Specified by:
resolvein interfaceObjectResolver- Parameters:
document- theWordprocessingMLPackagedocument in which to resolve the expressionexpression- the expression value to be replacedobject- the object to be used for resolving the expression- Returns:
- the resolved value for the expression
-
defaultValue
Deprecated.Retrieves the default value of theResolvers.Null2DefaultResolverobject.- Returns:
- the default value of the
Resolvers.Null2DefaultResolverobject as a String
-