64 lines
1.7 KiB
Java
Generated
64 lines
1.7 KiB
Java
Generated
// This file is auto-generated by alef — DO NOT EDIT.
|
|
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
|
// To regenerate: alef generate
|
|
// To verify freshness: alef verify --exit-code
|
|
// Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
package dev.kreuzberg;
|
|
|
|
import java.util.List;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
|
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
|
|
|
|
/**
|
|
* Footnote in Djot.
|
|
*/
|
|
@JsonInclude(JsonInclude.Include.NON_ABSENT)
|
|
@JsonDeserialize(builder = Footnote.Builder.class)
|
|
public record Footnote(
|
|
/**
|
|
* Footnote label
|
|
*/
|
|
@JsonProperty("label") String label,
|
|
/**
|
|
* Footnote content blocks
|
|
*/
|
|
@JsonProperty("content") List<FormattedBlock> content
|
|
) {
|
|
public static Builder builder() {
|
|
return new Builder();
|
|
}
|
|
|
|
// CPD-OFF
|
|
@JsonPOJOBuilder(withPrefix = "with", buildMethodName = "build")
|
|
public static final class Builder {
|
|
|
|
private String label = "";
|
|
private List<FormattedBlock> content = List.of();
|
|
|
|
/** Sets the label field. */
|
|
@JsonProperty("label")
|
|
public Builder withLabel(final String value) {
|
|
this.label = value;
|
|
return this;
|
|
}
|
|
|
|
/** Sets the content field. */
|
|
@JsonProperty("content")
|
|
public Builder withContent(final List<FormattedBlock> value) {
|
|
this.content = value;
|
|
return this;
|
|
}
|
|
|
|
/** Builds the Footnote instance. */
|
|
public Footnote build() {
|
|
return new Footnote(
|
|
label,
|
|
content
|
|
);
|
|
}
|
|
}
|
|
// CPD-ON
|
|
}
|