org.springframework.beans

## 类 BeanMetadataAttribute

- java.lang.Object
- - org.springframework.beans.BeanMetadataAttribute

- 所有已实现的接口:
    BeanMetadataElement

      public class BeanMetadataAttribute
      extends Object
      implements BeanMetadataElement

  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.
  从以下版本开始:
    2.5
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `BeanMetadataAttribute(String name, Object value)` Create a new AttributeValue instance.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object other)`
    `String` | `getName()` Return the name of the attribute.
    `Object` | `getSource()` 获取源对象,可能返回null 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()`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### BeanMetadataAttribute

          public BeanMetadataAttribute(String name,
                                       @Nullable
                                       Object value)

      Create a new AttributeValue instance.
      参数:
        `name` - the name of the attribute (never `null`)
        `value` - the value of the attribute (possibly before type conversion)

  - ### 方法详细资料

    - #### getName

          public String getName()

      Return the name of the attribute.

    - #### getValue

          @Nullable
          public Object getValue()

      Return the value of the attribute.

    - #### setSource

          public void setSource(@Nullable
                                Object source)

      Set the configuration source `Object` for this metadata element.

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

    - #### getSource

          @Nullable
          public Object getSource()

      从接口复制的说明: `BeanMetadataElement`
      获取源对象,可能返回null Return the configuration source `Object` for this metadata element (may be `null`).
      指定者:
        `getSource` 在接口中 `BeanMetadataElement`

    - #### equals

          public boolean equals(Object other)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`