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

com.github.kongchen.swagger.docgen.remote.model.JModelRef Maven / Gradle / Ivy

There is a newer version: 3.1.8
Show newest version
package com.github.kongchen.swagger.docgen.remote.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.kongchen.swagger.docgen.util.Utils;
import com.wordnik.swagger.model.ModelRef;

/**
 * Created by chekong on 10/11/14.
 */
public class JModelRef implements CanBeSwaggerModel {
    private String type;
    @JsonProperty("$ref")
    private String ref;
    private String qualifiedType;

    public void setType(String type) {
        this.type = type;
    }

    public void setRef(String ref) {
        this.ref = ref;
    }

    public void setQualifiedType(String qualifiedType) {
        this.qualifiedType = qualifiedType;
    }

    public String getType() {
        return type;
    }

    public String getRef() {
        return ref;
    }

    public String getQualifiedType() {
        return qualifiedType;
    }

    @Override
    public ModelRef toSwaggerModel() {
        return new ModelRef(type, Utils.getOption(ref), Utils.getOption(qualifiedType));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy