@Test public void testFieldType() throws IOException { Field field = BatfishObjectMapper.mapper() .readValue(String.format("{\"%s\":\"ipSpaceSpec\"}", BfConsts.PROP_TYPE), Field.class); assertThat(field.getType(), equalTo(Variable.Type.IP_SPACE_SPEC)); }
@Nullable @JsonProperty(BfConsts.PROP_TYPE) public Variable.Type getType() { return _type; }
Field { @Nullable @JsonProperty(BfConsts.PROP_TYPE) public Variable.Type getType() { return _type; } }
Field { @Nullable @JsonProperty(BfConsts.PROP_TYPE) public Variable.Type getType() { return _type; }  }
Field { @Nullable @JsonProperty(BfConsts.PROP_TYPE) public Variable.Type getType() { return _type; }  @JsonProperty(BfConsts.PROP_OPTIONAL) boolean getOptional(); @Nullable @JsonProperty(BfConsts.PROP_TYPE) Variable.Type getType(); @JsonProperty(BfConsts.PROP_OPTIONAL) void setOptional(boolean optional); @JsonProperty(BfConsts.PROP_TYPE) void setType(Variable.Type type); }
Field { @Nullable @JsonProperty(BfConsts.PROP_TYPE) public Variable.Type getType() { return _type; }  @JsonProperty(BfConsts.PROP_OPTIONAL) boolean getOptional(); @Nullable @JsonProperty(BfConsts.PROP_TYPE) Variable.Type getType(); @JsonProperty(BfConsts.PROP_OPTIONAL) void setOptional(boolean optional); @JsonProperty(BfConsts.PROP_TYPE) void setType(Variable.Type type);  }