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

com.networknt.oas.model.Parameter Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 *  Copyright (c) 2017 ModelSolv, Inc. and others.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *     ModelSolv, Inc. - initial API and implementation and/or initial documentation
 *******************************************************************************/
package com.networknt.oas.model;

import java.util.Map;

import com.networknt.jsonoverlay.IJsonOverlay;
import com.networknt.jsonoverlay.IModelPart;

public interface Parameter extends IJsonOverlay, IModelPart {

	String getKey();

	// Extension
	Map getExtensions();

	Map getExtensions(boolean elaborate);

	boolean hasExtensions();

	boolean hasExtension(String name);

	Object getExtension(String name);

	void setExtensions(Map extensions);

	void setExtension(String name, Object extension);

	void removeExtension(String name);

	// ContentMediaType
	Map getContentMediaTypes();

	Map getContentMediaTypes(boolean elaborate);

	boolean hasContentMediaTypes();

	boolean hasContentMediaType(String name);

	MediaType getContentMediaType(String name);

	void setContentMediaTypes(Map contentMediaTypes);

	void setContentMediaType(String name, MediaType contentMediaType);

	void removeContentMediaType(String name);

	// Example
	Map getExamples();

	Map getExamples(boolean elaborate);

	boolean hasExamples();

	boolean hasExample(String name);

	Example getExample(String name);

	void setExamples(Map examples);

	void setExample(String name, Example example);

	void removeExample(String name);

	// Example
	Object getExample();

	void setExample(Object example);

	// Schema
	Schema getSchema();

	Schema getSchema(boolean elaborate);

	void setSchema(Schema schema);

	// AllowReserved
	Boolean getAllowReserved();

	boolean isAllowReserved();

	void setAllowReserved(Boolean allowReserved);

	// Explode
	Boolean getExplode();

	boolean isExplode();

	void setExplode(Boolean explode);

	// Style
	String getStyle();

	void setStyle(String style);

	// AllowEmptyValue
	Boolean getAllowEmptyValue();

	boolean isAllowEmptyValue();

	void setAllowEmptyValue(Boolean allowEmptyValue);

	// Deprecated
	Boolean getDeprecated();

	boolean isDeprecated();

	void setDeprecated(Boolean deprecated);

	// Required
	Boolean getRequired();

	boolean isRequired();

	void setRequired(Boolean required);

	// Description
	String getDescription();

	void setDescription(String description);

	// Name
	String getName();

	void setName(String name);

	// In
	String getIn();

	void setIn(String in);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy