@Test public void testJsonSerialization() { { ExprAclLine l = new ExprAclLine(LineAction.PERMIT, OriginatingFromDevice.INSTANCE, "name"); ExprAclLine clone = (ExprAclLine) BatfishObjectMapper.clone(l, AclLine.class); assertEquals(l, clone); } { ExprAclLine l = new ExprAclLine( LineAction.PERMIT, OriginatingFromDevice.INSTANCE, "name", TraceElement.builder().add("a").build()); ExprAclLine clone = (ExprAclLine) BatfishObjectMapper.clone(l, AclLine.class); assertEquals(l, clone); } }
public static Builder builder() { return new Builder(); }
ExprAclLine extends AclLine { public static Builder builder() { return new Builder(); } }
ExprAclLine extends AclLine { public static Builder builder() { return new Builder(); } ExprAclLine(
      @Nonnull LineAction action, @Nonnull AclLineMatchExpr matchCondition, String name);  ExprAclLine(
      @Nonnull LineAction action,
      @Nonnull AclLineMatchExpr matchCondition,
      String name,
      TraceElement traceElement); }
ExprAclLine extends AclLine { public static Builder builder() { return new Builder(); } ExprAclLine(
      @Nonnull LineAction action, @Nonnull AclLineMatchExpr matchCondition, String name);  ExprAclLine(
      @Nonnull LineAction action,
      @Nonnull AclLineMatchExpr matchCondition,
      String name,
      TraceElement traceElement); static Builder accepting(); @VisibleForTesting static ExprAclLine accepting(AclLineMatchExpr expr); static ExprAclLine accepting(@Nonnull String name, AclLineMatchExpr expr); static ExprAclLine accepting(@Nonnull TraceElement traceElement, AclLineMatchExpr expr); @VisibleForTesting static ExprAclLine acceptingHeaderSpace(HeaderSpace headerSpace); static ExprAclLine acceptingHeaderSpace(@Nonnull String name, HeaderSpace headerSpace); static Builder builder(); static Builder rejecting(); @VisibleForTesting static ExprAclLine rejecting(AclLineMatchExpr expr); static ExprAclLine rejecting(String name, AclLineMatchExpr expr); static ExprAclLine rejecting(@Nonnull TraceElement traceElement, AclLineMatchExpr expr); @VisibleForTesting static ExprAclLine rejectingHeaderSpace(HeaderSpace headerSpace); static ExprAclLine rejectingHeaderSpace(String name, HeaderSpace headerSpace); @Override boolean equals(Object obj); @JsonProperty(PROP_ACTION) @Nonnull LineAction getAction(); @JsonProperty(PROP_MATCH_CONDITION) @Nonnull AclLineMatchExpr getMatchCondition(); @Override R accept(GenericAclLineVisitor<R> visitor); @Override int hashCode(); Builder toBuilder(); @Override String toString(); }
ExprAclLine extends AclLine { public static Builder builder() { return new Builder(); } ExprAclLine(
      @Nonnull LineAction action, @Nonnull AclLineMatchExpr matchCondition, String name);  ExprAclLine(
      @Nonnull LineAction action,
      @Nonnull AclLineMatchExpr matchCondition,
      String name,
      TraceElement traceElement); static Builder accepting(); @VisibleForTesting static ExprAclLine accepting(AclLineMatchExpr expr); static ExprAclLine accepting(@Nonnull String name, AclLineMatchExpr expr); static ExprAclLine accepting(@Nonnull TraceElement traceElement, AclLineMatchExpr expr); @VisibleForTesting static ExprAclLine acceptingHeaderSpace(HeaderSpace headerSpace); static ExprAclLine acceptingHeaderSpace(@Nonnull String name, HeaderSpace headerSpace); static Builder builder(); static Builder rejecting(); @VisibleForTesting static ExprAclLine rejecting(AclLineMatchExpr expr); static ExprAclLine rejecting(String name, AclLineMatchExpr expr); static ExprAclLine rejecting(@Nonnull TraceElement traceElement, AclLineMatchExpr expr); @VisibleForTesting static ExprAclLine rejectingHeaderSpace(HeaderSpace headerSpace); static ExprAclLine rejectingHeaderSpace(String name, HeaderSpace headerSpace); @Override boolean equals(Object obj); @JsonProperty(PROP_ACTION) @Nonnull LineAction getAction(); @JsonProperty(PROP_MATCH_CONDITION) @Nonnull AclLineMatchExpr getMatchCondition(); @Override R accept(GenericAclLineVisitor<R> visitor); @Override int hashCode(); Builder toBuilder(); @Override String toString(); static final ExprAclLine ACCEPT_ALL; static final ExprAclLine REJECT_ALL; }