com.jrefinery.report.io.ext.factory.stylekey
Class StyleKeyFactoryCollector

java.lang.Object
  |
  +--com.jrefinery.report.io.ext.factory.stylekey.StyleKeyFactoryCollector
All Implemented Interfaces:
StyleKeyFactory

public class StyleKeyFactoryCollector
extends java.lang.Object
implements StyleKeyFactory

A style key factory.

Author:
Thomas Morgner

Constructor Summary
StyleKeyFactoryCollector()
          Creates a new factory.
 
Method Summary
 void addFactory(StyleKeyFactory factory)
          Adds a factory.
 java.lang.Object createBasicObject(StyleKey k, java.lang.String value, java.lang.Class c, org.jfree.xml.factory.objects.ClassFactory cf)
          Creates an object.
 java.util.Iterator getFactories()
          Returns an iterator that provides access to the factories.
 java.util.Iterator getRegisteredKeys()
          Returns an iterator that provides access to the registered keys.
 StyleKey getStyleKey(java.lang.String name)
          Returns a style key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleKeyFactoryCollector

public StyleKeyFactoryCollector()
Creates a new factory.

Method Detail

addFactory

public void addFactory(StyleKeyFactory factory)
Adds a factory.

Parameters:
factory - the factory.

getFactories

public java.util.Iterator getFactories()
Returns an iterator that provides access to the factories.

Returns:
The iterator.

getStyleKey

public StyleKey getStyleKey(java.lang.String name)
Returns a style key.

Specified by:
getStyleKey in interface StyleKeyFactory
Parameters:
name - the name.
Returns:
The style key.

createBasicObject

public java.lang.Object createBasicObject(StyleKey k,
                                          java.lang.String value,
                                          java.lang.Class c,
                                          org.jfree.xml.factory.objects.ClassFactory cf)
Creates an object.

Specified by:
createBasicObject in interface StyleKeyFactory
Parameters:
k - the style key.
value - the value.
c - the class.
cf - the class factory used to create the basic object.
Returns:
The object.

getRegisteredKeys

public java.util.Iterator getRegisteredKeys()
Returns an iterator that provides access to the registered keys.

Specified by:
getRegisteredKeys in interface StyleKeyFactory
Returns:
The iterator.