Annotation Type Attribute


@Retention(RUNTIME) @Target(FIELD) public @interface Attribute
Annotation for designating a particular class field as the attribute of an HLA object class.
Since:
1.5
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Coder<?>>
    A coder capable of handling data conversion for the type assigned to this attribute in the FOM.
    The attribute name of the object class as defined in the FOM.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    org.see.skf.runtime.ScopeLevel
    The scope for this object class attribute: PUBLISH, SUBSCRIBE, PUBLISH_SUBSCRIBE, or NONE.
  • Element Details

    • name

      String name
      The attribute name of the object class as defined in the FOM.
      Returns:
      Name of this attribute
    • coder

      Class<? extends Coder<?>> coder
      A coder capable of handling data conversion for the type assigned to this attribute in the FOM.
      Returns:
      A coder for this attribute's type
    • scope

      org.see.skf.runtime.ScopeLevel scope
      The scope for this object class attribute: PUBLISH, SUBSCRIBE, PUBLISH_SUBSCRIBE, or NONE. Defaults to PUBLISH_SUBSCRIBE if not specified.
      Returns:
      The scope level for this attribute
      Default:
      PUBLISH_SUBSCRIBE