org.jfree.xml.util
public final class GenericObjectFactory extends Object
Constructor Summary | |
---|---|
GenericObjectFactory(Class c, String registerName, ConstructorDefinition[] constructors, PropertyDefinition[] propertyDefinitions, LookupDefinition[] lookupDefinitions, AttributeDefinition[] attributeDefinitions, String[] orderedPropertyNames)
Creates a new generic object factory.
|
Method Summary | |
---|---|
Object | createObject()
Creates an object according to the definition.
|
AttributeDefinition[] | getAttributeDefinitions()
Returns the attribute definitions.
|
Class | getBaseClass()
Returns the base class.
|
ConstructorDefinition[] | getConstructorDefinitions()
Returns the constructor definitions.
|
GenericObjectFactory | getInstance()
Returns a copy of this instance.
|
LookupDefinition[] | getLookupDefinitions()
Returns the lookup definitions.
|
String[] | getOrderedPropertyNames()
Returns the property names.
|
Object | getProperty(String name)
Returns the value of the specified property.
|
PropertyDefinition | getPropertyDefinitionByPropertyName(String propertyName)
Returns the property definition for the specified property name.
|
PropertyDefinition | getPropertyDefinitionByTagName(String tagName)
Returns a property definition for the specified tag name.
|
PropertyDefinition[] | getPropertyDefinitions()
Returns the property definitions.
|
String | getRegisterName()
Returns the register name.
|
Class | getTypeForTagName(String tagName)
Returns the class for a tag name.
|
boolean | isPropertyDefinition(String propertyName)
Returns true if there is a property definition for the specified property name.
|
void | readProperties(Object object)
Reads the properties.
|
void | setProperty(String propertyName, Object value)
Sets a property value.
|
void | writeObjectProperties(Object object)
Writes the properties for the object.
|
Parameters: c the class. registerName the (optional) name under which to register the class for any later lookup. constructors the constructor definitions. propertyDefinitions the property definitions. lookupDefinitions the lookup definitions. attributeDefinitions the attribute definitions. orderedPropertyNames the ordered property names.
Throws: ObjectDescriptionException if there is a problem.
Returns: the object.
Throws: ObjectDescriptionException if there is a problem with the object description.
Returns: the attribute definitions.
Returns: the base class.
Returns: the constructor definitions.
Returns: a copy of this instance.
Returns: the lookup definitions.
Returns: the property names.
Parameters: name the property name.
Returns: the property value.
Parameters: propertyName the property name.
Returns: the property definition.
Throws: ObjectDescriptionException if there is no such property for this object.
Parameters: tagName the tag name.
Returns: the property definition.
Throws: ObjectDescriptionException if there is no such tag defined for this object.
Returns: the property definitions.
Returns: the register name.
Parameters: tagName the tag name.
Returns: the class.
Throws: ObjectDescriptionException if there is a problem.
Parameters: propertyName the property name.
Returns: A boolean.
Parameters: object the object.
Throws: ObjectDescriptionException if there is a problem.
Parameters: propertyName the property name. value the property value.
Throws: ObjectDescriptionException if there is a problem with the object description.
Parameters: object the object.
Throws: ObjectDescriptionException if there is a problem.