org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.stylekey
Class StyleKeyFactoryCollector

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.ext.factory.stylekey.StyleKeyFactoryCollector
All Implemented Interfaces:
Serializable, StyleKeyFactory

public class StyleKeyFactoryCollector
extends Object
implements StyleKeyFactory

A style key factory.

Author:
Thomas Morgner
See Also:
Serialized Form

Constructor Summary
StyleKeyFactoryCollector()
          Creates a new factory.
 
Method Summary
 void addFactory(StyleKeyFactory factory)
          Adds a factory.
 Object createBasicObject(StyleKey k, String value, Class c, ClassFactory cf)
          Creates an object.
 boolean equals(Object o)
          Indicated whether an other object is equal to this one.
 Iterator getFactories()
          Returns an iterator that provides access to the factories.
 Iterator getRegisteredKeys()
          Returns an iterator that provides access to the registered keys.
 StyleKey getStyleKey(String name)
          Returns a style key.
 int hashCode()
          Computes an hashcode for this factory.
 
Methods inherited from class java.lang.Object
getClass, 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 Iterator getFactories()
Returns an iterator that provides access to the factories.

Returns:
The iterator.

getStyleKey

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

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

createBasicObject

public Object createBasicObject(StyleKey k,
                                String value,
                                Class c,
                                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 Iterator getRegisteredKeys()
Returns an iterator that provides access to the registered keys.

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

equals

public boolean equals(Object o)
Indicated whether an other object is equal to this one.

Overrides:
equals in class Object
Parameters:
o - the other object.
Returns:
true, if the object is equal, false otherwise.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Computes an hashcode for this factory.

Overrides:
hashCode in class Object
Returns:
the hashcode.
See Also:
Object.hashCode()