001/* 002 * SPDX-FileCopyrightText: none 003 * SPDX-License-Identifier: CC0-1.0 004 */ 005 006package dev.metaschema.core.model; 007 008/** 009 * A format-neutral representation of unmodeled content captured from an 010 * assembly instance that declares {@code <any/>} in its model. 011 * 012 * <p> 013 * Implementations hold native content representations specific to each 014 * serialization format (e.g., W3C DOM for XML, Jackson ObjectNode for JSON). 015 * Consumers needing format-specific access should use {@code instanceof} checks 016 * on the implementation class. 017 */ 018@FunctionalInterface 019public interface IAnyContent { 020 /** 021 * Determine if this content container has no captured content. 022 * 023 * @return {@code true} if no unmodeled content was captured, {@code false} 024 * otherwise 025 */ 026 boolean isEmpty(); 027}