@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) @Inherited public @interface MItem
MComposite
.MComposite
Modifier and Type | Optional Element and Description |
---|---|
String |
description |
String |
name |
Class<?> |
type
If no type is declared on a
MItem annotation the type of the field or the return type of the method the annotation is declared on
will be used to search for more annotations such as MComposite that defines the open type of the item. |
public abstract String description
public abstract String name
public abstract Class<?> type
MItem
annotation the type of the field or the return type of the method the annotation is declared on
will be used to search for more annotations such as MComposite
that defines the open type of the item.
However, if the real type of the field or return type of the method is not the declared type but a sub type and the annotations are declared
on the sub type instead of the declared type then use this annotation attribute to specify the real type.
If the declared type is a List
or a sub class of it with one generic parameter then you can use the type attribute to specify the real content type of the list.Copyright © 2016 AXON IVY AG. All rights reserved.