public class BeanMetadataAttribute extends java.lang.Object implements BeanMetadataElement
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name |
private java.lang.Object |
source |
private java.lang.Object |
value |
| Constructor and Description |
|---|
BeanMetadataAttribute(java.lang.String name,
java.lang.Object value)
Create a new AttributeValue instance.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
private final java.lang.String name
@Nullable private final java.lang.Object value
@Nullable private java.lang.Object source
public BeanMetadataAttribute(java.lang.String name,
@Nullable
java.lang.Object value)
name - the name of the attribute (never null)value - the value of the attribute (possibly before type conversion)public java.lang.String getName()
@Nullable public java.lang.Object getValue()
public void setSource(@Nullable java.lang.Object source)
Object for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
@Nullable public java.lang.Object getSource()
BeanMetadataElementObject for this metadata element
(may be null).getSource in interface BeanMetadataElementpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object