Class StringTemplates
java.lang.Object
org.jdbi.v3.stringtemplate4.StringTemplates
- All Implemented Interfaces:
JdbiConfig<StringTemplates>
Configuration options for
StringTemplateEngine.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.booleanReturns whether missing attributes in a StringTemplate are a rendering error.setFailOnMissingAttribute(boolean failOnMissingAttribute) Control whether missing attributes cause a rendering exception.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JdbiConfig
setRegistryModifier and TypeMethodDescriptiondefault voidsetRegistry(ConfigRegistry registry) The registry will inject itself into the configuration object.
-
Constructor Details
-
StringTemplates
public StringTemplates()
-
-
Method Details
-
isFailOnMissingAttribute
public boolean isFailOnMissingAttribute()Returns whether missing attributes in a StringTemplate are a rendering error.- Returns:
- whether missing attributes in a StringTemplate are a rendering error
-
setFailOnMissingAttribute
Control whether missing attributes cause a rendering exception. Defaults to false.- Parameters:
failOnMissingAttribute- whether a missing attribute throws an exception- Returns:
- this configuration instance
-
createCopy
Description copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopyin interfaceJdbiConfig<StringTemplates>- Returns:
- a copy of this configuration object.
-