Class CharacterObjectDescription
java.lang.Object
org.jfree.xml.factory.objects.AbstractObjectDescription
org.jfree.xml.factory.objects.CharacterObjectDescription
- All Implemented Interfaces:
Serializable, Cloneable, ObjectDescription
An object-description for a
Character object.- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new object (Character) based on this description object.booleanTests for equality.inthashCode()Returns a hash code for the object.voidSets the parameters of this description object to match the supplied object.
-
Constructor Details
-
CharacterObjectDescription
public CharacterObjectDescription()Creates a new object description.
-
-
Method Details
-
createObject
Creates a new object (Character) based on this description object.- Returns:
- The
Characterobject.
-
setParameterFromObject
Sets the parameters of this description object to match the supplied object.- Parameters:
o- the object (should be an instance ofCharacter).- Throws:
ObjectFactoryException- if there is a problem while reading the properties of the given object.
-
equals
Tests for equality.- Specified by:
equalsin interfaceObjectDescription- Overrides:
equalsin classAbstractObjectDescription- Parameters:
o- the object to test.- Returns:
- A boolean.
-
hashCode
Returns a hash code for the object.- Specified by:
hashCodein interfaceObjectDescription- Overrides:
hashCodein classAbstractObjectDescription- Returns:
- The hash code.
-