Annotation Type CMPFieldTag


  • @Retention(RUNTIME)
    @Target({METHOD,TYPE})
    @Documented
    public @interface CMPFieldTag

    Annotation that can be used to assign arbitrarily named tags to CMP fields. Tags can be used as a filtering type mechanism in various methods defined in the CMPFields interface.

    Since:
    Rhino 2.6.1
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean inherit
      If the CMP field should inherit tags defined at the class or interface level or by superclasses.
      String[] remove
      Existing tags to remove from the CMP field.
      String[] value
      Tags to add to the CMP field.
    • Element Detail

      • value

        String[] value

        Tags to add to the CMP field.

        Since:
        Rhino 2.6.1
        Default:
        {}
      • remove

        String[] remove

        Existing tags to remove from the CMP field. Use of this attribute only has meaning if inherit() is true.

        Since:
        Rhino 2.6.1
        Default:
        {}
      • inherit

        boolean inherit

        If the CMP field should inherit tags defined at the class or interface level or by superclasses.

        If the value of this property is true (the default), then tags defined in the following locations will be inherited:

        • Tags defined at the class or interface level in the bounding class or interface, and any tags that that class or interface inherits.

        • Tags defined by duplicate definitions of the CMP field accessor methods in superclasses.

        If the value of this property is false, no tags will be inherited and any tags added by this annotation will be the only tags associated with the CMP field.

        Since:
        Rhino 2.6.1
        Default:
        true