@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface FieldsOrder
@Type(name = "Starship", description = "Type for a starship")
@FieldsOrder({"name", "id", "length"})
public class Starship {
private String id;
private String name;
private float length;
// getters/setters...
}
Schema generation of this would result in a stanza such as:
# Type for a starship
type Starship {
id: String
name: String
length: Float
}
public abstract String[] value
Copyright © 2019 Eclipse Foundation. All rights reserved.