public class

BeanMetadataAttribute

extends Object
implements BeanMetadataElement
java.lang.Object
   ↳ org.springframework.beans.BeanMetadataAttribute

Class Overview

Holder for a key-value style attribute that is part of a bean definition. Keeps track of the definition source in addition to the key-value pair.

Summary

Public Constructors
BeanMetadataAttribute(String name, Object value)
Create a new AttributeValue instance.
Public Methods
boolean equals(Object other)
String getName()
Return the name of the attribute.
Object getSource()
Return the configuration source Object for this metadata element (may be null).
Object getValue()
Return the value of the attribute.
int hashCode()
void setSource(Object source)
Set the configuration source Object for this metadata element.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement

Public Constructors

public BeanMetadataAttribute (String name, Object value)

Also: SpringBeans

Create a new AttributeValue instance.

Parameters
name the name of the attribute (never null)
value the value of the attribute (possibly before type conversion)

Public Methods

public boolean equals (Object other)

public String getName ()

Also: SpringBeans

Return the name of the attribute.

public Object getSource ()

Also: SpringBeans

Return the configuration source Object for this metadata element (may be null).

public Object getValue ()

Also: SpringBeans

Return the value of the attribute.

public int hashCode ()

public void setSource (Object source)

Also: SpringBeans

Set the configuration source Object for this metadata element.

The exact type of the object will depend on the configuration mechanism used.

public String toString ()