@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) @Documented public @interface Ignore
@Type("Starship")
@Input("StarshipInput")
@Description("A starship in Star Wars")
public class Starship {
private String id;
private String name;
private float length;
@Ignore
private String color;
private float mass;
@Ignore
public void setLength(float length) {
this.length = length;
}
@Ignore
public float getMass() {
return mass;
}
// other getters/setters...
}
Schema generation of this would result in a stanza such as:
# A starship in Star Wars
type Starship {
id: String
length: Float
name: String
}
# A starship in Star Wars
input StarshipInput {
id: String
mass: Float
name: String
}
Copyright © 2020 Eclipse Foundation. All rights reserved.