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

pack-priv final Class IntElementHandler

extends StringElementHandler
Class Inheritance

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

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

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

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

Constructor Detail

IntElementHandlerback to summary
pack-priv IntElementHandler()

Method Detail

getValueback to summary
public Object getValue(String argument)

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

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

Parameters
argument:String

the text of the body

Returns:Object

evaluated int value

Annotations
@Override