io.swagger.models.properties.ByteArrayProperty 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.
The newest version!
package io.swagger.models.properties;
import io.swagger.models.Xml;
public class ByteArrayProperty extends AbstractProperty implements Property {
public ByteArrayProperty() {
super.type = "string";
super.format = "byte";
}
public static boolean isType(String type, String format) {
if ("string".equals(type) && "byte".equals(format))
return true;
else return false;
}
public ByteArrayProperty xml(Xml xml) {
this.setXml(xml);
return this;
}
public ByteArrayProperty example(String example) {
this.setExample(example);
return this;
}
public ByteArrayProperty vendorExtension(String key, Object obj) {
this.setVendorExtension(key, obj);
return this;
}
}