org.apache.maven.doxia.module.fo
Class FoConfiguration

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

public class FoConfiguration
extends java.lang.Object

A utility class to construct FO configuration parameters.

Since:
1.1
Version:
$Id: FoConfiguration.java 746232 2009-02-20 13:32:44Z ltheussl $
Author:
ltheussl

Constructor Summary
FoConfiguration()
          Constructor.
 
Method Summary
 javax.swing.text.MutableAttributeSet getAttributeSet(java.lang.String attributeId)
          Builds a set of attributes.
 java.lang.String getAttributeString(java.lang.String attributeId)
          Builds a list of attributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FoConfiguration

public FoConfiguration()
Constructor.

Method Detail

getAttributeString

public java.lang.String getAttributeString(java.lang.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 javax.swing.text.MutableAttributeSet getAttributeSet(java.lang.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.


Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.