2 * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.openapi.model;
10 import com.fasterxml.jackson.core.JsonGenerator;
11 import java.io.IOException;
12 import org.eclipse.jdt.annotation.NonNull;
15 * A response entity for complex generated type.
17 public abstract sealed class OpenApiEntity permits ComponentsEntity, InfoEntity, OpenApiVersionEntity, OperationEntity,
18 PathEntity, SchemaEntity, SchemasEntity, SecurityEntity, SecuritySchemesEntity, ServerEntity, ServersEntity {
20 * Generate JSON events into specified generator.
22 * @param generator JsonGenerator to emit events to
23 * @throws IOException when an error occurs
25 public abstract void generate(@NonNull JsonGenerator generator) throws IOException;