Annotation Type AdaptationPresenceIndicator


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface AdaptationPresenceIndicator
    Marks a method as being a presence indicator setter or getter method for a given adaptation field.
    The return type from the setter must be the adaptation class, or a super-type. The setter is expected to return 'this', but the returned value is always ignored by the CGIN scenario tools.
    Examples: '@AdaptationPresenceIndicator("dataLength") boolean hasDataLength()' '@AdaptationPresenceIndicator("dataLength") SomeAdaptationType setDataLengthPresent(boolean isPresent)'
    Used for optional fields which are represented by a primitive Java type.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      The name of the adaptation field.
    • Element Detail

      • value

        String value
        The name of the adaptation field. Must be specified.