public abstract class AbstractStyleKeyFactory extends Object implements StyleKeyFactory
StyleKeyFactory
interface.Modifier | Constructor and Description |
---|---|
protected |
AbstractStyleKeyFactory()
Creates a new factory.
|
Modifier and Type | Method and Description |
---|---|
void |
addKey(StyleKey key)
Registers a key.
|
Object |
createBasicObject(StyleKey k,
String value,
Class c,
ClassFactory fc)
Creates an object.
|
boolean |
equals(Object o)
Indicated whether an other object is equal to this one.
|
Iterator |
getRegisteredKeys()
Returns an iterator that provides access to the registered keys.
|
StyleKey |
getStyleKey(String name)
Returns the key with the given name.
|
int |
hashCode()
Computes an hashcode for this factory.
|
protected void |
loadFromClass(Class c)
Loads all public static stylekeys which are declared in the given class.
|
protected AbstractStyleKeyFactory()
public void addKey(StyleKey key)
key
- the key.public StyleKey getStyleKey(String name)
getStyleKey
in interface StyleKeyFactory
name
- the name.public Object createBasicObject(StyleKey k, String value, Class c, ClassFactory fc)
createBasicObject
in interface StyleKeyFactory
k
- the style key.value
- the value.c
- the class.fc
- the class factory used to create the basic object.protected void loadFromClass(Class c)
c
- the class from where to load the stylekeys.SecurityException
- if the current security settings deny class access.public Iterator getRegisteredKeys()
getRegisteredKeys
in interface StyleKeyFactory
public boolean equals(Object o)
equals
in class Object
o
- the other object.Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.