Class FoConfiguration

java.lang.Object
org.apache.maven.doxia.module.fo.FoConfiguration

public class FoConfiguration extends Object
A utility class to construct FO configuration parameters.
Since:
1.1
Author:
ltheussl
  • Constructor Details

    • FoConfiguration

      public FoConfiguration()
      Constructor.
  • Method Details

    • load

      public void load(File configFile) throws IOException
      Load configuration parameters from a File.
      Parameters:
      configFile - the configuration file.
      Throws:
      IOException - if the File cannot be read or some error occurs when initializing the configuration parameters.
      Since:
      1.1.1
    • getAttributeString

      public String getAttributeString(String attributeId)
      Builds a list of attributes.
      Parameters:
      attributeId - A unique id to identify the set of attributes. This should correspond to the name of an attribute-set defined in the configuration file.
      Returns:
      A string that contains a list of attributes with the values configured for the current builder. Returns the empty string if attributeId is null or if attributeId is not a valid identifier.
    • getAttributeSet

      public MutableAttributeSet getAttributeSet(String attributeId)
      Builds a set of attributes.
      Parameters:
      attributeId - A unique id to identify the set of attributes. This should correspond to the name of an attribute-set defined in the configuration file.
      Returns:
      A MutableAttributeSet that contains the attributes with the values configured for the current builder. Returns null if attributeId is null or empty, or if attributeId is not a valid identifier.