Class StyleKeyFactoryCollector
- java.lang.Object
-
- 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
Constructors Constructor Description StyleKeyFactoryCollector()
Creates a new factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceStyleKeyFactory
- 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 interfaceStyleKeyFactory
- 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 interfaceStyleKeyFactory
- Returns:
- The iterator.
-
equals
public boolean equals(Object o)
Indicated whether an other object is equal to this one.- Overrides:
equals
in classObject
- 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 classObject
- Returns:
- the hashcode.
- See Also:
Object.hashCode()
-
-