@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof TRelationshipTemplate)) return false; TRelationshipTemplate that = (TRelationshipTemplate) o; return Objects.equals(getType(), that.getType()) && Objects.equals(getDescription(), that.getDescription()) && Objects.equals(getMetadata(), that.getMetadata()) && Objects.equals(getProperties(), that.getProperties()) && Objects.equals(getAttributes(), that.getAttributes()) && Objects.equals(getInterfaces(), that.getInterfaces()) && Objects.equals(getCopy(), that.getCopy()); }
@Override public int hashCode() { return Objects.hash(getType(), getDescription(), getMetadata(), getProperties(), getAttributes(), getInterfaces(), getCopy()); }
@Override public R visit(TRelationshipTemplate node, P parameter) { return reduce(Stream.of( visitElement(node.getMetadata(), parameter, "metadata"), visitElement(node.getProperties(), parameter, "properties"), visitElement(node.getAttributes(), parameter, "attributes"), visitElement(node.getInterfaces(), parameter, "interfaces") )); }
@Override public String toString() { return "TRelationshipTemplate{" + "type=" + getType() + ", description='" + getDescription() + '\'' + ", metadata=" + getMetadata() + ", properties=" + getProperties() + ", attributes=" + getAttributes() + ", interfaces=" + getInterfaces() + ", copy=" + getCopy() + '}'; }
public Printer visit(TRelationshipTemplate node, Parameter parameter) { return new Printer(parameter.getIndent()) .printKeyValue("type", node.getType()) .printKeyValue("description", node.getDescription()) .print(node.getMetadata().accept(this, parameter)) .print(printMap("properties", node.getProperties(), parameter)) .print(printMap("attributes", node.getAttributes(), parameter)) .print(printMap("interfaces", node.getInterfaces(), parameter)) .printKeyValue("copy", node.getCopy()); }