Package org.docx4j
Class Docx4jProperties
java.lang.Object
org.docx4j.Docx4jProperties
public class Docx4jProperties
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog -
Constructor Summary
Constructors Constructor Description Docx4jProperties() -
Method Summary
Modifier and Type Method Description static java.util.PropertiesgetProperties()static java.lang.StringgetProperty(java.lang.String key)static booleangetProperty(java.lang.String key, boolean defaultValue)static intgetProperty(java.lang.String key, int defaultValue)static java.lang.StringgetProperty(java.lang.String key, java.lang.String defaultValue)static longgetPropertyLong(java.lang.String key, long defaultValue)static voidsetProperty(java.lang.String key, java.lang.Boolean value)Useful if a unit test requires a certain property value.static voidsetProperty(java.lang.String key, java.lang.String value)Useful if a unit test requires a certain property value.static voidsetPropertyLong(java.lang.String key, long value)
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
Docx4jProperties
public Docx4jProperties()
-
-
Method Details
-
getProperty
public static java.lang.String getProperty(java.lang.String key) -
getProperty
public static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)- Since:
- 2.7.2
-
getProperty
public static boolean getProperty(java.lang.String key, boolean defaultValue)- Since:
- 3.3.0
-
getProperty
public static int getProperty(java.lang.String key, int defaultValue) -
getPropertyLong
public static long getPropertyLong(java.lang.String key, long defaultValue)- Since:
- 6.0.0
-
getProperties
public static java.util.Properties getProperties() -
setProperty
public static void setProperty(java.lang.String key, java.lang.Boolean value)Useful if a unit test requires a certain property value.- Since:
- 3.0.0
-
setProperty
public static void setProperty(java.lang.String key, java.lang.String value)Useful if a unit test requires a certain property value.- Since:
- 3.0.0
-
setPropertyLong
public static void setPropertyLong(java.lang.String key, long value)- Since:
- 6.0.0
-