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

pack-priv Class ObjectElementHandler

extends NewElementHandler
Class Inheritance
Known Direct Subclasses
com.sun.beans.decoder.VoidElementHandler
Imports
java.beans.Expression

This class is intended to handle <object> element. This element looks like <void> element, but its value is always used as an argument for element that contains this one.

The following attributes are supported:

class
the type is used for static methods and fields
method
the method name
property
the property name
index
the property index
field
the field name
idref
the identifier to refer to the variable
id
the identifier of the variable that is intended to store the result
Author
Sergey A. Malenkov
Since
1.7

Field Summary

Modifier and TypeField and Description
private String
private String
private Integer
private String
private String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

Overrides com.sun.beans.decoder.NewElementHandler.addAttribute.

Parses attributes of the element.

protected final ValueObject

Returns:

the value of this element
getValueObject
(Class<?>
the base class
type
,
Object[]
the array of arguments
args
)

Overrides com.sun.beans.decoder.NewElementHandler.getValueObject.

Creates the value of this element.

protected boolean

Returns:

true if the value of this element can be used as an argument of the element that contained in this one, false otherwise
isArgument
()

Overrides com.sun.beans.decoder.ElementHandler.isArgument.

Tests whether the value of this element can be used as an argument of the element that contained in this one.

public final void
startElement()

Overrides com.sun.beans.decoder.ElementHandler.startElement.

Calculates the value of this element if the field attribute or the idref attribute is set.

Inherited from com.sun.beans.decoder.NewElementHandler:
addArgumentgetArgumentsgetArgumentTypesgetContextBeangetValueObject

Field Detail

fieldback to summary
private String field
idrefback to summary
private String idref
indexback to summary
private Integer index
methodback to summary
private String method
propertyback to summary
private String property

Constructor Detail

ObjectElementHandlerback to summary
pack-priv ObjectElementHandler()

Method Detail

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

Overrides com.sun.beans.decoder.NewElementHandler.addAttribute.

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

class
the type is used for static methods and fields
method
the method name
property
the property name
index
the property index
field
the field name
idref
the identifier to refer to the variable
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
getValueObjectback to summary
protected final ValueObject getValueObject(Class<?> type, Object[] args) throws Exception

Overrides com.sun.beans.decoder.NewElementHandler.getValueObject.

Creates the value of this element.

Parameters
type:Class<?>

the base class

args:Object[]

the array of arguments

Returns:ValueObject

the value of this element

Annotations
@Override
Exceptions
Exception:
if calculation is failed
isArgumentback to summary
protected boolean isArgument()

Overrides com.sun.beans.decoder.ElementHandler.isArgument.

Tests whether the value of this element can be used as an argument of the element that contained in this one.

Returns:boolean

true if the value of this element can be used as an argument of the element that contained in this one, false otherwise

Annotations
@Override
startElementback to summary
public final void startElement()

Overrides com.sun.beans.decoder.ElementHandler.startElement.

Calculates the value of this element if the field attribute or the idref attribute is set.

Annotations
@Override