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.
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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanResolve(Object object) 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.Rresolve(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.
-
Constructor Details
-
LegacyFallbackResolver
public LegacyFallbackResolver()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
canResolve
Deprecated, for removal: This API element is subject to removal in a future version.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 placeholder, Object object) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ObjectResolverResolves the placeholder in the given document with the provided object.- Specified by:
resolvein interfaceObjectResolver- Parameters:
document- theWordprocessingMLPackagedocument in which to resolve the placeholderplaceholder- the placeholder value to be replacedobject- the object to be used for resolving the placeholder- Returns:
- the resolved value for the placeholder
-
Resolvers.fallback()instead. LegacyFallbackResolver was capable of mapping any object to their String representation. Now, this is more streamlined and manageable usingResolvers.fallback().