Class BooleanAttributeHandler
java.lang.Object
org.jfree.xml.attributehandlers.BooleanAttributeHandler
- All Implemented Interfaces:
AttributeHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts the attribute to a string.Converts a string to aBoolean.
-
Constructor Details
-
BooleanAttributeHandler
public BooleanAttributeHandler()Creates a new attribute handler.
-
-
Method Details
-
toAttributeValue
Converts the attribute to a string.- Specified by:
toAttributeValuein interfaceAttributeHandler- Parameters:
o- the attribute (Booleanexpected).- Returns:
- A string representing the
Booleanvalue.
-
toPropertyValue
Converts a string to aBoolean.- Specified by:
toPropertyValuein interfaceAttributeHandler- Parameters:
s- the string.- Returns:
- a
Boolean.
-