org.jfree.xml.factory.objects

Class ByteObjectDescription

public class ByteObjectDescription extends AbstractObjectDescription

An object-description for a Byte object.

Author: Thomas Morgner

Constructor Summary
ByteObjectDescription()
Creates a new object description.
Method Summary
ObjectcreateObject()
Creates a new object (Byte) based on this description object.
booleanequals(Object o)
Tests for equality.
inthashCode()
Returns a hash code for the object.
voidsetParameterFromObject(Object o)
Sets the parameters of this description object to match the supplied object.

Constructor Detail

ByteObjectDescription

public ByteObjectDescription()
Creates a new object description.

Method Detail

createObject

public Object createObject()
Creates a new object (Byte) based on this description object.

Returns: The Byte object.

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 for the object.

Returns: The hash code.

setParameterFromObject

public void setParameterFromObject(Object o)
Sets the parameters of this description object to match the supplied object.

Parameters: o the object (should be an instance of Byte.

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