|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.BeanMetadataAttribute
public class BeanMetadataAttribute
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.
Field Summary | |
---|---|
private java.lang.String |
name
|
private java.lang.Object |
source
|
private java.lang.Object |
value
|
Constructor Summary | |
---|---|
BeanMetadataAttribute(java.lang.String name,
java.lang.Object value)
Create a new AttributeValue instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getName()
Return the name of the attribute. |
java.lang.Object |
getSource()
Return the configuration source Object for this metadata element
(may be null ). |
java.lang.Object |
getValue()
Return the value of the attribute. |
int |
hashCode()
|
void |
setSource(java.lang.Object source)
Set the configuration source Object for this metadata element. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final java.lang.String name
private final java.lang.Object value
private java.lang.Object source
Constructor Detail |
---|
public BeanMetadataAttribute(java.lang.String name, java.lang.Object value)
name
- the name of the attribute (never null
)value
- the value of the attribute (possibly before type conversion)Method Detail |
---|
public java.lang.String getName()
public java.lang.Object getValue()
public void setSource(java.lang.Object source)
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
public java.lang.Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).
getSource
in interface BeanMetadataElement
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |