@Expose("orderedItem") public List<? extends Product> getItems() { return items; }
@Expose("orderedItem") public List<? extends Product> getItems() { return items; }
/** * Created by Dietrich on 17.02.2015. */ @Expose("CafeOrCoffeeShop") public class Store extends ResourceSupport { public String name = "Kaffeehaus Hagen"; private List<Offer> offers = new ArrayList<Offer>(); public String getName() { return name; } public List<Offer> getMakesOffer() { return offers; } public void addOffer(Offer offer) { this.offers.add(offer); } }
/** * Created by Dietrich on 17.02.2015. */ @Expose("CafeOrCoffeeShop") public class Store extends ResourceSupport { public String name = "Kaffeehaus Hagen"; private List<Offer> offers = new ArrayList<Offer>(); public String getName() { return name; } public List<Offer> getMakesOffer() { return offers; } public void addOffer(Offer offer) { this.offers.add(offer); } }
/** * Mixin for json-ld serialization of Resources. Created by dschulten on 14.09.2014. */ @JsonSerialize(include = JsonSerialize.Inclusion.NON_EMPTY) @Term(define = "hydra", as = "http://www.w3.org/ns/hydra/core#") @Expose("hydra:Collection") public abstract class ResourcesMixin<T> extends Resources<T> { @Override @JsonProperty("hydra:member") @ContextProvider public Collection<T> getContent() { return super.getContent(); } @Override @JsonSerialize(using = LinkListSerializer.class) @JsonUnwrapped public List<Link> getLinks() { return super.getLinks(); } }
/** * Mixin for json-ld serialization of PagedResources. */ @JsonSerialize(include = JsonSerialize.Inclusion.NON_EMPTY) @Term(define = "hydra", as = "http://www.w3.org/ns/hydra/core#") @Expose("hydra:Collection") public abstract class PagedResourcesMixin<T> extends PagedResources<T> { @Override @JsonProperty("hydra:member") @ContextProvider public Collection<T> getContent() { return super.getContent(); } @Override @JsonSerialize(using = LinkListSerializer.class) @JsonUnwrapped public List<Link> getLinks() { return super.getLinks(); } @Override @JsonIgnore // used by PagedResourcesSerializer instead public PageMetadata getMetadata() { return super.getMetadata(); } }