APIdia Launch Partner
Top Description Constructors Methods
com.sun.beans.decoder

pack-priv final Class FloatElementHandler

extends StringElementHandler
Class Inheritance

This class is intended to handle <float> element. This element specifies float values. The class Float is used as wrapper for these values. The result value is created from text of the body of this element. The body parsing is described in the class StringElementHandler. For example:
<float>-1.23</float>
is shortcut to
<method name="valueOf" class="java.lang.Float">
    <string>-1.23</string>
</method>
which is equivalent to Float.valueOf("-1.23") in Java code.

The following attribute is supported:

id
the identifier of the variable that is intended to store the result
Author
Sergey A. Malenkov
Since
1.7

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

evaluated float value
getValue
(String
the text of the body
argument
)

Overrides com.sun.beans.decoder.StringElementHandler.getValue.

Creates float value from the text of the body of this element.

Inherited from com.sun.beans.decoder.StringElementHandler:
addArgumentaddCharactergetValueObject

Constructor Detail

FloatElementHandlerback to summary
pack-priv FloatElementHandler()

Method Detail

getValueback to summary
public Object getValue(String argument)

Overrides com.sun.beans.decoder.StringElementHandler.getValue.

Creates float value from the text of the body of this element.

Parameters
argument:String

the text of the body

Returns:Object

evaluated float value

Annotations
@Override