org.jfree.xml.factory.objects

Class ShortObjectDescription

public class ShortObjectDescription extends AbstractObjectDescription

An object-description for a Short object.

Author: Thomas Morgner

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

Constructor Detail

ShortObjectDescription

public ShortObjectDescription()
Creates a new object description.

Method Detail

createObject

public Object createObject()
Creates an object based on this description.

Returns: The 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.

Returns: A 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 Short).

Throws: ObjectFactoryException if the object is not an instance of Short.