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

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

There is a newer version: 2.1.38
Show newest version
package com.networknt.oas.model;

import java.util.Collection;
import java.util.Map;

public interface ServerVariable extends OpenApiObject {

    // EnumValue

    Collection getEnumValues();


    Collection getEnumValues(boolean elaborate);


    boolean hasEnumValues();


    Object getEnumValue(int index);


    void setEnumValues(Collection enumValues);


    void setEnumValue(int index, Object enumValue);


    void addEnumValue(Object enumValue);


    void insertEnumValue(int index, Object enumValue);


    void removeEnumValue(int index);

    // Default

    Object getDefault();


    Object getDefault(boolean elaborate);


    void setDefault(Object defaultValue);

    // Description

    String getDescription();


    String getDescription(boolean elaborate);


    void setDescription(String description);

    // Extension

    Map getExtensions();


    Map getExtensions(boolean elaborate);


    boolean hasExtension(String name);


    Object getExtension(String name);


    void setExtensions(Map extensions);


    void setExtension(String name, Object extension);


    void removeExtension(String name);

}