com.wordnik.swagger.models.properties.BooleanProperty Maven / Gradle / Ivy
The newest version!
package com.wordnik.swagger.models.properties;
import com.wordnik.swagger.models.Xml;
public class BooleanProperty extends AbstractProperty implements Property {
public BooleanProperty() {
super.type = "boolean";
}
public BooleanProperty xml(Xml xml) {
this.setXml(xml);
return this;
}
public BooleanProperty example(Boolean example) {
this.setExample(String.valueOf(example));
return this;
}
public static boolean isType(String type, String format) {
if("boolean".equals(type))
return true;
else return false;
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy