@Target(value={PARAMETER,METHOD,FIELD,TYPE}) @Retention(value=RUNTIME) @Documented public @interface Description
@Description("Vehicle for traveling between star systems") public class Starship { private String id; private float length; @Description("Name of a particular starship, not it's class - i.e. 'Millenium Falcon'") private String name; // getters/setters... }Schema generation of this would result in a stanza such as:
"Vehicle for traveling between star systems" type Starship { id: String length: Float "Name of a particular starship, not it's class - i.e. 'Millenium Falcon'" name: String }
public abstract String value
Copyright © 2019 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.