public class BeanMetadataAttributeAccessor extends AttributeAccessorSupport implements BeanMetadataElement
AttributeAccessorSupport の拡張。定義ソースを追跡するために、属性を BeanMetadataAttribute オブジェクトとして保持します。| コンストラクターと説明 |
|---|
BeanMetadataAttributeAccessor() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | addMetadataAttribute(BeanMetadataAttribute attribute) 指定された BeanMetadataAttribute をこのアクセサーの属性セットに追加します。 |
ObjectSE | getAttribute(StringSE name)name で識別される属性の値を取得します。 |
BeanMetadataAttribute | getMetadataAttribute(StringSE name) このアクセサーの属性セットで、指定された BeanMetadataAttribute を検索します。 |
ObjectSE | getSource() このメタデータ要素の構成ソース Object を返します(null の場合があります)。 |
ObjectSE | removeAttribute(StringSE name)name で識別される属性を削除し、その値を返します。 |
void | setAttribute(StringSE name, ObjectSE value)name で定義された属性を、指定された value に設定します。 |
void | setSource(ObjectSE source) このメタデータ要素の構成ソース Object を設定します。 |
attributeNames, copyAttributesFrom, equals, hasAttribute, hashCodecloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic void setSource(@Nullable ObjectSE source)
Object を設定します。オブジェクトの正確な型は、使用される構成メカニズムによって異なります。
@Nullable public ObjectSE getSource()
BeanMetadataElementObject を返します(null の場合があります)。BeanMetadataElement の getSource public void addMetadataAttribute(BeanMetadataAttribute attribute)
attribute - 登録する BeanMetadataAttribute オブジェクト @Nullable public BeanMetadataAttribute getMetadataAttribute(StringSE name)
name - 属性の名前 null public void setAttribute(StringSE name, @Nullable ObjectSE value)
AttributeAccessorname で定義された属性を、指定された value に設定します。value が null の場合、属性は removed です。一般に、ユーザーは、クラスまたはパッケージ名を接頭辞として使用するなど、完全修飾名を使用して、他のメタデータ属性との重複を防ぐように注意する必要があります。
AttributeAccessor の setAttribute AttributeAccessorSupport の setAttribute name - 一意の属性キー value - 添付する属性値 @Nullable public ObjectSE getAttribute(StringSE name)
AttributeAccessorname で識別される属性の値を取得します。属性が存在しない場合は null を返します。AttributeAccessor の getAttribute AttributeAccessorSupport の getAttribute name - 一意の属性キー @Nullable public ObjectSE removeAttribute(StringSE name)
AttributeAccessorname で識別される属性を削除し、その値を返します。name の属性が見つからない場合は、null を返します。AttributeAccessor の removeAttribute AttributeAccessorSupport の removeAttribute name - 一意の属性キー