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

pack-priv final Class ClassElementHandler

extends StringElementHandler
Class Inheritance

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

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

Creates class by the name from the text of the body of this element.

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

Constructor Detail

ClassElementHandlerback to summary
pack-priv ClassElementHandler()

Method Detail

getValueback to summary
public Object getValue(String argument)

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

Creates class by the name from the text of the body of this element.

Parameters
argument:String

the text of the body

Returns:Object

evaluated Class value

Annotations
@Override