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

pack-priv final Class DoubleElementHandler

extends StringElementHandler
Class Inheritance

This class is intended to handle <double> element. This element specifies double values. The class Double 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:
<double>1.23e45</double>
is shortcut to
<method name="valueOf" class="java.lang.Double">
    <string>1.23e45</string>
</method>
which is equivalent to Double.valueOf("1.23e45") 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 double value
getValue
(String
the text of the body
argument
)

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

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

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

Constructor Detail

DoubleElementHandlerback to summary
pack-priv DoubleElementHandler()

Method Detail

getValueback to summary
public Object getValue(String argument)

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

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

Parameters
argument:String

the text of the body

Returns:Object

evaluated double value

Annotations
@Override