@Test public void shouldDeserialize() throws Exception { final AttributeDisplayForm attrDF = readObjectFromResource("/md/attributeDisplayForm.json", AttributeDisplayForm.class); assertThat(attrDF, is(notNullValue())); assertThat(attrDF.getFormOf(), is(FORM_OF)); assertThat(attrDF.getExpression(), is(EXPRESSION)); assertThat(attrDF.isDefault(), is(DEFAULT_TRUE)); assertThat(attrDF.getLdmExpression(), is(LDM_EXPRESSION)); assertThat(attrDF.getType(), is(TYPE)); assertThat(attrDF.getElementsUri(), is(ELEMENTS_LINK)); }
@JsonIgnore public boolean isDefault() { return Boolean.TRUE.equals(attributeContent.isDefault()); }
AttributeDisplayForm extends DisplayForm implements Updatable { @JsonIgnore public boolean isDefault() { return Boolean.TRUE.equals(attributeContent.isDefault()); } }
AttributeDisplayForm extends DisplayForm implements Updatable { @JsonIgnore public boolean isDefault() { return Boolean.TRUE.equals(attributeContent.isDefault()); } @JsonCreator private  AttributeDisplayForm(@JsonProperty("meta") Meta meta, @JsonProperty("content") AttributeContent content,
            @JsonProperty("links") Links links);   AttributeDisplayForm(String title, String formOf, String expression, boolean isDefault, String ldmExpression, String type, String elements); }
AttributeDisplayForm extends DisplayForm implements Updatable { @JsonIgnore public boolean isDefault() { return Boolean.TRUE.equals(attributeContent.isDefault()); } @JsonCreator private  AttributeDisplayForm(@JsonProperty("meta") Meta meta, @JsonProperty("content") AttributeContent content,
            @JsonProperty("links") Links links);   AttributeDisplayForm(String title, String formOf, String expression, boolean isDefault, String ldmExpression, String type, String elements); @JsonIgnore boolean isDefault(); @Override String toString(); }
AttributeDisplayForm extends DisplayForm implements Updatable { @JsonIgnore public boolean isDefault() { return Boolean.TRUE.equals(attributeContent.isDefault()); } @JsonCreator private  AttributeDisplayForm(@JsonProperty("meta") Meta meta, @JsonProperty("content") AttributeContent content,
            @JsonProperty("links") Links links);   AttributeDisplayForm(String title, String formOf, String expression, boolean isDefault, String ldmExpression, String type, String elements); @JsonIgnore boolean isDefault(); @Override String toString();  }