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

io.swagger.models.properties.FileProperty Maven / Gradle / Ivy

package io.swagger.models.properties;

import io.swagger.models.Xml;

public class FileProperty extends AbstractProperty implements Property {
    public FileProperty() {
        super.type = "file";
    }

    public static boolean isType(String type, String format) {
        if (type != null && "file".equals(type.toLowerCase())) {
            return true;
        } else {
            return false;
        }
    }

    public FileProperty xml(Xml xml) {
        this.setXml(xml);
        return this;
    }

    public FileProperty readOnly() {
        this.setReadOnly(Boolean.TRUE);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy