Package org.jfree.xml.factory.objects
Class ArrayClassFactory
- java.lang.Object
-
- org.jfree.xml.factory.objects.ArrayClassFactory
-
- All Implemented Interfaces:
java.io.Serializable,ClassFactory
public class ArrayClassFactory extends java.lang.Object implements ClassFactory
An class that implements theClassFactoryinterface to create Arrays of objects. The object descriptions are created on demand.- Author:
- Thomas Morgner.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayClassFactory()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration config)Configures this factory.booleanequals(java.lang.Object o)ArrayClassFactories are always equal, there is nothing that could not be equal :)ObjectDescriptiongetDescriptionForClass(java.lang.Class c)Returns an object description for a class.java.util.IteratorgetRegisteredClasses()Returns an iterator for the registered classes.ObjectDescriptiongetSuperClassObjectDescription(java.lang.Class d, ObjectDescription knownSuperClass)Returns an object description for the super class of a class.inthashCode()Returns a hash code value for the object.
-
-
-
Constructor Detail
-
ArrayClassFactory
public ArrayClassFactory()
Default constructor.
-
-
Method Detail
-
getDescriptionForClass
public ObjectDescription getDescriptionForClass(java.lang.Class c)
Returns an object description for a class.- Specified by:
getDescriptionForClassin interfaceClassFactory- Parameters:
c- the class.- Returns:
- The object description.
-
getSuperClassObjectDescription
public ObjectDescription getSuperClassObjectDescription(java.lang.Class d, ObjectDescription knownSuperClass)
Returns an object description for the super class of a class. This method always returns null.- Specified by:
getSuperClassObjectDescriptionin interfaceClassFactory- Parameters:
d- the class.knownSuperClass- the last known super class or null.- Returns:
- The object description.
-
getRegisteredClasses
public java.util.Iterator 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:
getRegisteredClassesin interfaceClassFactory- Returns:
- The iterator.
-
configure
public void configure(Configuration config)
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:
configurein interfaceClassFactory- Parameters:
config- the configuration, never null
-
equals
public boolean equals(java.lang.Object o)
ArrayClassFactories are always equal, there is nothing that could not be equal :)- Specified by:
equalsin interfaceClassFactory- Overrides:
equalsin classjava.lang.Object- Parameters:
o- the other object.- Returns:
- true, if both object factories describe the same objects, false otherwise.
-
hashCode
public int 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:
hashCodein interfaceClassFactory- Overrides:
hashCodein classjava.lang.Object- Returns:
- the computed hashcode.
-
-