com.xmlmind.fo.graphic
Class GraphicFactoryBase

java.lang.Object
  extended by com.xmlmind.fo.graphic.GraphicFactoryBase
All Implemented Interfaces:
GraphicFactory
Direct Known Subclasses:
GraphicFactoryImpl

public abstract class GraphicFactoryBase
extends Object
implements GraphicFactory

An abstract base class for GraphicFactories which does not support any parameter.


Field Summary
protected  String factoryName
           
 
Constructor Summary
protected GraphicFactoryBase(String name)
          Constructs factory having specified name.
 
Method Summary
 String getName()
          Returns the name of this factory.
 String getParameter(String name)
          Returns the value of the parameter having specified name.
 void setParameter(String name, String value)
          Sets parameter having specified name and specified value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.xmlmind.fo.graphic.GraphicFactory
convertGraphic, createGraphic, getInputFormats, getOutputFormats
 

Field Detail

factoryName

protected final String factoryName
Constructor Detail

GraphicFactoryBase

protected GraphicFactoryBase(String name)
Constructs factory having specified name.

Method Detail

getName

public String getName()
Description copied from interface: GraphicFactory
Returns the name of this factory.

Specified by:
getName in interface GraphicFactory

setParameter

public void setParameter(String name,
                         String value)
Sets parameter having specified name and specified value.

Does not support any parameter and hence throws an IllegalArgumentException.

Specified by:
setParameter in interface GraphicFactory
Parameters:
name - name of the parameter
value - value of the parameter. Specify null to restore the default value of parameter name
See Also:
GraphicFactory.getParameter(java.lang.String)

getParameter

public String getParameter(String name)
Returns the value of the parameter having specified name. Returns null if the parameter is unknown.

Does not support any parameter and hence returns null.

Specified by:
getParameter in interface GraphicFactory
Parameters:
name - name of the parameter
See Also:
GraphicFactory.setParameter(java.lang.String, java.lang.String)