Package org.jfree.xml.factory.objects
Class ArrayClassFactory
java.lang.Object
org.jfree.xml.factory.objects.ArrayClassFactory
- All Implemented Interfaces:
Serializable
,ClassFactory
An class that implements the
ClassFactory
interface to
create Arrays of objects. The object descriptions are created on
demand.- Author:
- Thomas Morgner.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration config) Configures this factory.boolean
ArrayClassFactories are always equal, there is nothing that could not be equal :)Returns an object description for a class.Returns an iterator for the registered classes.getSuperClassObjectDescription
(Class d, ObjectDescription knownSuperClass) Returns an object description for the super class of a class.int
hashCode()
Returns a hash code value for the object.
-
Constructor Details
-
ArrayClassFactory
public ArrayClassFactory()Default constructor.
-
-
Method Details
-
getDescriptionForClass
Returns an object description for a class.- Specified by:
getDescriptionForClass
in interfaceClassFactory
- Parameters:
c
- the class.- Returns:
- The object description.
-
getSuperClassObjectDescription
Returns an object description for the super class of a class. This method always returns null.- Specified by:
getSuperClassObjectDescription
in interfaceClassFactory
- Parameters:
d
- the class.knownSuperClass
- the last known super class or null.- Returns:
- The object description.
-
getRegisteredClasses
Returns an iterator for the registered classes. This returns a list of pre-registered classes known to this ClassFactory. A class may be able to handle more than the registered classes.This method exists to support query tools for UI design, do not rely on it for day to day work.
- Specified by:
getRegisteredClasses
in interfaceClassFactory
- Returns:
- The iterator.
-
configure
Configures this factory. The configuration contains several keys and their defined values. The given reference to the configuration object will remain valid until the report parsing or writing ends.The configuration contents may change during the reporting.
- Specified by:
configure
in interfaceClassFactory
- Parameters:
config
- the configuration, never null
-
equals
ArrayClassFactories are always equal, there is nothing that could not be equal :)- Specified by:
equals
in interfaceClassFactory
- Overrides:
equals
in classObject
- Parameters:
o
- the other object.- Returns:
- true, if both object factories describe the same objects, false otherwise.
-
hashCode
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided byjava.util.Hashtable
.- Specified by:
hashCode
in interfaceClassFactory
- Overrides:
hashCode
in classObject
- Returns:
- the computed hashcode.
-