注釈型 Attribute


@Documented
@Target(FIELD)
@Retention(RUNTIME)
public @interface Attribute
The annotation that specifies mapping between a field and a condition defined in a conten file.
導入されたバージョン:
1.0.0
  • 必須要素の概要

    必須要素
    修飾子とタイプ 必須要素 説明
    String value
    Specify the field in the content class that you want to tie to the attribute defined in the content file.
  • 要素の詳細

    • value

      String value
      Specify the field in the content class that you want to tie to the attribute defined in the content file.

      If a specific attribute name is not specified when this annotation is given to a field in the content class, the annotated field name is inferred as the attribute key defined in the content file. If the field name is different from the key name defined in the content file with this annotation, specify any key name in this field.

      戻り値:
      The alias name of attribute