CustomProperties
interface allows to specify custom properties. Custom properties are usable both on the command-line and configuration file.
java -jar docGenerator.jar -input=wiki/input -output=wiki/output -hasTOC=false -outputType=docx
But this will work:
java -jar docGenerator.jar -input=wiki/input -output=wiki/output -outputType=docx -hasTOC=false
public interface CustomProperties { /** * Return true if a specified property key is handled. */ public default boolean hasProperty(String key) { return getPropertiesTypes().containsKey(key); } /** * Return the Map of properties types. */ public Map<String, Class<?>> getPropertiesTypes(); /** * Set the value of a specified property. */ public void setProperty(String key, Object value); /** * Return the value of a specified property. */ public Object getProperty(String key); /** * Reset the properties. */ public void reset(); /** * Setup the class after all the properties have been set. */ public void setup(); /** * Set the parent parser which can be notified if an exception is detected while settting the property. */ public void setParser(ResolverXMLParser parser); /** * Set the ClassLoader used for the properties. */ public void setClassLoader(ClassLoader loader);
Boolean.TYPE
and Boolean.class
for boolean propertiesInteger.TYPE
and Integer.class
for int propertiesFloat.TYPE
and Float.class
for float propertiesURL.class
for File propertiesdocJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.