io.swagger.models.properties.FileProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
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;
}
}