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

java.lang.Object
  |
  +--com.jrefinery.report.io.ext.factory.stylekey.AbstractStyleKeyFactory
All Implemented Interfaces:
StyleKeyFactory
Direct Known Subclasses:
DefaultStyleKeyFactory, PageableLayoutStyleKeyFactory

public abstract class AbstractStyleKeyFactory
extends java.lang.Object
implements StyleKeyFactory

An abstract class for implementing the StyleKeyFactory interface.

Author:
Thomas Morgner.

Field Summary
static java.lang.String OBJECT_FACTORY_TAG
          the parser configuration property name for this factory.
 
Constructor Summary
AbstractStyleKeyFactory()
          Creates a new factory.
 
Method Summary
 void addKey(StyleKey key)
          Registers a key.
 java.lang.Object createBasicObject(StyleKey k, java.lang.String value, java.lang.Class c, org.jfree.xml.factory.objects.ClassFactory fc)
          Creates an object.
 java.util.Iterator getRegisteredKeys()
          Returns an iterator that provides access to the registered keys.
 StyleKey getStyleKey(java.lang.String name)
          Returns the key with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_FACTORY_TAG

public static final java.lang.String OBJECT_FACTORY_TAG
the parser configuration property name for this factory.

See Also:
Constant Field Values
Constructor Detail

AbstractStyleKeyFactory

public AbstractStyleKeyFactory()
Creates a new factory.

Method Detail

addKey

public void addKey(StyleKey key)
Registers a key.

Parameters:
key - the key.

getStyleKey

public StyleKey getStyleKey(java.lang.String name)
Returns the key with the given name.

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

createBasicObject

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

Specified by:
createBasicObject in interface StyleKeyFactory
Parameters:
k - the style key.
value - the value.
c - the class.
fc - 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.