@Test public void testDeserializationWithFlags() throws Exception { final Meta meta = readObjectFromResource("/md/meta-withFlags.json", Meta.class); assertThat(meta, is(notNullValue())); assertThat(meta.getFlags(), is(FLAGS)); }
public Set<String> getFlags() { return flags; }
Meta implements Serializable { public Set<String> getFlags() { return flags; } }
Meta implements Serializable { public Set<String> getFlags() { return flags; } @JsonCreator protected  Meta(@JsonProperty("author") String author,
                   @JsonProperty("contributor") String contributor,
                   @JsonProperty("created") ZonedDateTime created,
                   @JsonProperty("updated") ZonedDateTime updated,
                   @JsonProperty("summary") String summary,
                   @JsonProperty("title") String title,
                   @JsonProperty("category") String category,
                   @JsonProperty("tags") @JsonDeserialize(using = TagsDeserializer.class) Set<String> tags,
                   @JsonProperty("uri") String uri,
                   @JsonProperty("identifier") String identifier,
                   @JsonProperty("flags") Set<String> flags);  Meta(String author, String contributor, ZonedDateTime created, ZonedDateTime updated, String summary,
                String title, String category, Set<String> tags, String uri, String identifier,
                Boolean deprecated, Boolean production, Boolean locked, Boolean unlisted,
                Boolean sharedWithSomeone, Set<String> flags);  Meta(String title);  Meta(String title, String summary); }
Meta implements Serializable { public Set<String> getFlags() { return flags; } @JsonCreator protected  Meta(@JsonProperty("author") String author,
                   @JsonProperty("contributor") String contributor,
                   @JsonProperty("created") ZonedDateTime created,
                   @JsonProperty("updated") ZonedDateTime updated,
                   @JsonProperty("summary") String summary,
                   @JsonProperty("title") String title,
                   @JsonProperty("category") String category,
                   @JsonProperty("tags") @JsonDeserialize(using = TagsDeserializer.class) Set<String> tags,
                   @JsonProperty("uri") String uri,
                   @JsonProperty("identifier") String identifier,
                   @JsonProperty("flags") Set<String> flags);  Meta(String author, String contributor, ZonedDateTime created, ZonedDateTime updated, String summary,
                String title, String category, Set<String> tags, String uri, String identifier,
                Boolean deprecated, Boolean production, Boolean locked, Boolean unlisted,
                Boolean sharedWithSomeone, Set<String> flags);  Meta(String title);  Meta(String title, String summary); @JsonIgnore String getId(); String getAuthor(); String getContributor(); ZonedDateTime getCreated(); String getSummary(); void setSummary(String summary); String getTitle(); void setTitle(String title); ZonedDateTime getUpdated(); String getCategory(); void setCategory(String category); @JsonSerialize(using = TagsSerializer.class) Set<String> getTags(); void setTags(Set<String> tags); String getUri(); @JsonProperty("deprecated") @JsonSerialize(using = BooleanStringSerializer.class) Boolean isDeprecated(); @JsonProperty("deprecated") @JsonDeserialize(using = BooleanDeserializer.class) void setDeprecated(Boolean deprecated); String getIdentifier(); void setIdentifier(String identifier); @JsonProperty("isProduction") @JsonSerialize(using = BooleanIntegerSerializer.class) Boolean isProduction(); @JsonProperty("isProduction") @JsonDeserialize(using = BooleanDeserializer.class) void setProduction(final Boolean production); @JsonProperty("locked") @JsonSerialize(using = BooleanIntegerSerializer.class) Boolean isLocked(); @JsonProperty("locked") @JsonDeserialize(using = BooleanDeserializer.class) void setLocked(Boolean locked); @JsonProperty("unlisted") @JsonSerialize(using = BooleanIntegerSerializer.class) Boolean isUnlisted(); @JsonProperty("unlisted") @JsonDeserialize(using = BooleanDeserializer.class) void setUnlisted(Boolean unlisted); @JsonProperty("sharedWithSomeone") @JsonSerialize(using = BooleanIntegerSerializer.class) Boolean isSharedWithSomeone(); @JsonProperty("sharedWithSomeone") @JsonDeserialize(using = BooleanDeserializer.class) void setSharedWithSomeone(final Boolean sharedWithSomeone); Set<String> getFlags(); void setFlags(final Set<String> flags); @Override String toString(); }
Meta implements Serializable { public Set<String> getFlags() { return flags; } @JsonCreator protected  Meta(@JsonProperty("author") String author,
                   @JsonProperty("contributor") String contributor,
                   @JsonProperty("created") ZonedDateTime created,
                   @JsonProperty("updated") ZonedDateTime updated,
                   @JsonProperty("summary") String summary,
                   @JsonProperty("title") String title,
                   @JsonProperty("category") String category,
                   @JsonProperty("tags") @JsonDeserialize(using = TagsDeserializer.class) Set<String> tags,
                   @JsonProperty("uri") String uri,
                   @JsonProperty("identifier") String identifier,
                   @JsonProperty("flags") Set<String> flags);  Meta(String author, String contributor, ZonedDateTime created, ZonedDateTime updated, String summary,
                String title, String category, Set<String> tags, String uri, String identifier,
                Boolean deprecated, Boolean production, Boolean locked, Boolean unlisted,
                Boolean sharedWithSomeone, Set<String> flags);  Meta(String title);  Meta(String title, String summary); @JsonIgnore String getId(); String getAuthor(); String getContributor(); ZonedDateTime getCreated(); String getSummary(); void setSummary(String summary); String getTitle(); void setTitle(String title); ZonedDateTime getUpdated(); String getCategory(); void setCategory(String category); @JsonSerialize(using = TagsSerializer.class) Set<String> getTags(); void setTags(Set<String> tags); String getUri(); @JsonProperty("deprecated") @JsonSerialize(using = BooleanStringSerializer.class) Boolean isDeprecated(); @JsonProperty("deprecated") @JsonDeserialize(using = BooleanDeserializer.class) void setDeprecated(Boolean deprecated); String getIdentifier(); void setIdentifier(String identifier); @JsonProperty("isProduction") @JsonSerialize(using = BooleanIntegerSerializer.class) Boolean isProduction(); @JsonProperty("isProduction") @JsonDeserialize(using = BooleanDeserializer.class) void setProduction(final Boolean production); @JsonProperty("locked") @JsonSerialize(using = BooleanIntegerSerializer.class) Boolean isLocked(); @JsonProperty("locked") @JsonDeserialize(using = BooleanDeserializer.class) void setLocked(Boolean locked); @JsonProperty("unlisted") @JsonSerialize(using = BooleanIntegerSerializer.class) Boolean isUnlisted(); @JsonProperty("unlisted") @JsonDeserialize(using = BooleanDeserializer.class) void setUnlisted(Boolean unlisted); @JsonProperty("sharedWithSomeone") @JsonSerialize(using = BooleanIntegerSerializer.class) Boolean isSharedWithSomeone(); @JsonProperty("sharedWithSomeone") @JsonDeserialize(using = BooleanDeserializer.class) void setSharedWithSomeone(final Boolean sharedWithSomeone); Set<String> getFlags(); void setFlags(final Set<String> flags); @Override String toString();  }