All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.roq.frontmatter.deployment.data.RoqFrontMatterTemplateBuildItem Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package io.quarkiverse.roq.frontmatter.deployment.data;

import io.quarkiverse.roq.frontmatter.deployment.scan.RoqFrontMatterRawTemplateBuildItem;
import io.quarkiverse.roq.frontmatter.runtime.model.RoqUrl;
import io.quarkus.builder.item.MultiBuildItem;
import io.vertx.core.json.JsonObject;

/**
 * A build item representing a Roq FM file with the data already processed.
 * This is meant for reading purpose.
 */
public final class RoqFrontMatterTemplateBuildItem extends MultiBuildItem {
    private final RoqFrontMatterRawTemplateBuildItem raw;
    private final RoqUrl url;
    private final JsonObject data;

    RoqFrontMatterTemplateBuildItem(RoqFrontMatterRawTemplateBuildItem raw, RoqUrl url, JsonObject data) {
        this.raw = raw;
        this.url = url;
        this.data = data;
    }

    public boolean published() {
        return raw.published();
    }

    public RoqFrontMatterRawTemplateBuildItem raw() {
        return raw;
    }

    public RoqUrl url() {
        return url;
    }

    public JsonObject data() {
        return data;
    }

    public boolean isPage() {
        return raw.isPage();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy