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

pack-priv final Class CharElementHandler

extends StringElementHandler
Class Inheritance

This class is intended to handle <char> element. This element specifies char values. The class Character 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:
<char>X</char>
which is equivalent to Character.valueOf('X') in Java code.

The following attributes are supported:

code
this attribute specifies character code
id
the identifier of the variable that is intended to store the result
The code attribute can be used for characters that are illegal in XML document, for example:
<char code="0"/>
Author
Sergey A. Malenkov
Since
1.7

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
addAttribute(String
the attribute name
name
,
String
the attribute value
value
)

Overrides com.sun.beans.decoder.ElementHandler.addAttribute.

Parses attributes of the element.

public Object

Returns:

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

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

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

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

Constructor Detail

CharElementHandlerback to summary
pack-priv CharElementHandler()

Method Detail

addAttributeback to summary
public void addAttribute(String name, String value)

Overrides com.sun.beans.decoder.ElementHandler.addAttribute.

Parses attributes of the element. The following attributes are supported:

code
this attribute specifies character code
id
the identifier of the variable that is intended to store the result
Parameters
name:String

the attribute name

value:String

the attribute value

Annotations
@Override
getValueback to summary
public Object getValue(String argument)

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

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

Parameters
argument:String

the text of the body

Returns:Object

evaluated char value

Annotations
@Override