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

io.swagger.parser.util.SwaggerDeserializationResult Maven / Gradle / Ivy

There is a newer version: 2.0.0-rc1
Show newest version
package io.swagger.parser.util;

import io.swagger.models.Swagger;

import java.util.ArrayList;
import java.util.List;

public class SwaggerDeserializationResult {
    private Swagger swagger;
    private List messages;

    public Swagger getSwagger() {
        return swagger;
    }

    public List getMessages() {
        return messages;
    }

    public void setMessages(List messages) {
        this.messages = messages;
    }

    public void setSwagger(Swagger swagger) {
        this.swagger = swagger;
    }

    public SwaggerDeserializationResult message(String message) {
        if(messages == null) {
            messages = new ArrayList();
        }
        messages.add(message);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy