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

pack-priv abstract Class AccessorElementHandler

extends ElementHandler
Class Inheritance
Known Direct Subclasses
com.sun.beans.decoder.FieldElementHandler, com.sun.beans.decoder.PropertyElementHandler

This is base class that simplifies access to entities (fields or properties). The name attribute specifies the name of the accessible entity. The element defines getter if it contains no argument or setter if it contains one argument.
Author
Sergey A. Malenkov
Since
1.7

Field Summary

Modifier and TypeField and Description
private String
private ValueObject

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected final void
addArgument(Object
the value of the element that contained in this one
argument
)

Overrides com.sun.beans.decoder.ElementHandler.addArgument.

Adds the argument that is used to set the value of this element.

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.

protected abstract Object

Returns:

the value of the specified entity
getValue
(String
the name of the accessible entity
name
)

Returns the value of the entity with specified name.

protected final ValueObject

Returns:

the value of this element
getValueObject
()

Implements abstract com.sun.beans.decoder.ElementHandler.getValueObject.

Returns the value of this element.

protected abstract void
setValue(String
the name of the accessible entity
name
,
Object
the new value for the specified entity
value
)

Sets the new value for the entity with specified name.

Inherited from com.sun.beans.decoder.ElementHandler:
addCharacterendElementgetContextBeangetOwnergetParentgetVariableisArgumentsetOwnersetParentstartElement

Field Detail

nameback to summary
private String name
valueback to summary
private ValueObject value

Constructor Detail

AccessorElementHandlerback to summary
pack-priv AccessorElementHandler()

Method Detail

addArgumentback to summary
protected final void addArgument(Object argument)

Overrides com.sun.beans.decoder.ElementHandler.addArgument.

Adds the argument that is used to set the value of this element.

Parameters
argument:Object

the value of the element that contained in this one

Annotations
@Override
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:

name
the name of the accessible entity
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
protected abstract Object getValue(String name)

Returns the value of the entity with specified name.

Parameters
name:String

the name of the accessible entity

Returns:Object

the value of the specified entity

getValueObjectback to summary
protected final ValueObject getValueObject()

Implements abstract com.sun.beans.decoder.ElementHandler.getValueObject.

Returns the value of this element.

Returns:ValueObject

the value of this element

Annotations
@Override
setValueback to summary
protected abstract void setValue(String name, Object value)

Sets the new value for the entity with specified name.

Parameters
name:String

the name of the accessible entity

value:Object

the new value for the specified entity