org.jfree.xml.factory.objects

Class BooleanObjectDescription

public class BooleanObjectDescription extends AbstractObjectDescription

An object-description for a Boolean object.

Author: Thomas Morgner

Constructor Summary
BooleanObjectDescription()
Creates a new object description.
Method Summary
ObjectcreateObject()
Creates a new Boolean based on the settings of this description object.
booleanequals(Object o)
Tests for equality.
inthashCode()
Returns a hash code.
voidsetParameterFromObject(Object o)
Sets the description object parameters to match the supplied object (which should be an instance of Boolean.

Constructor Detail

BooleanObjectDescription

public BooleanObjectDescription()
Creates a new object description.

Method Detail

createObject

public Object createObject()
Creates a new Boolean based on the settings of this description object.

Returns: A Boolean.

equals

public boolean equals(Object o)
Tests for equality.

Parameters: o the object to test.

Returns: A boolean.

hashCode

public int hashCode()
Returns a hash code.

Returns: A hash code.

setParameterFromObject

public void setParameterFromObject(Object o)
Sets the description object parameters to match the supplied object (which should be an instance of Boolean.

Parameters: o the object.

Throws: ObjectFactoryException if there is a problem while reading the properties of the given object.