Package org.jfree.xml.factory.objects
Class BooleanObjectDescription
java.lang.Object
org.jfree.xml.factory.objects.AbstractObjectDescription
org.jfree.xml.factory.objects.BooleanObjectDescription
- All Implemented Interfaces:
Serializable
,Cloneable
,ObjectDescription
An object-description for a
Boolean
object.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newBoolean
based on the settings of this description object.boolean
Tests for equality.int
hashCode()
Returns a hash code.void
Sets the description object parameters to match the supplied object (which should be an instance ofBoolean
.Methods inherited from class org.jfree.xml.factory.objects.AbstractObjectDescription
configure, convertPrimitiveClass, getConfig, getDefinedParameterNames, getInstance, getObjectClass, getParameter, getParameterDefinition, getParameterNames, getUnconfiguredInstance, setParameter, setParameterDefinition
-
Constructor Details
-
BooleanObjectDescription
public BooleanObjectDescription()Creates a new object description.
-
-
Method Details
-
createObject
Creates a newBoolean
based on the settings of this description object.- Returns:
- A
Boolean
.
-
setParameterFromObject
Sets the description object parameters to match the supplied object (which should be an instance ofBoolean
.- Parameters:
o
- the object.- Throws:
ObjectFactoryException
- if there is a problem while reading the properties of the given object.
-
equals
Tests for equality.- Specified by:
equals
in interfaceObjectDescription
- Overrides:
equals
in classAbstractObjectDescription
- Parameters:
o
- the object to test.- Returns:
- A boolean.
-
hashCode
public int hashCode()Returns a hash code.- Specified by:
hashCode
in interfaceObjectDescription
- Overrides:
hashCode
in classAbstractObjectDescription
- Returns:
- A hash code.
-