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

com.wordnik.swagger.models.properties.DecimalProperty Maven / Gradle / Ivy

The newest version!
package com.wordnik.swagger.models.properties;

import com.wordnik.swagger.models.Xml;

public class DecimalProperty extends AbstractNumericProperty implements Property {
  public DecimalProperty() {
    super.type = "number";
  }
  public DecimalProperty xml(Xml xml) {
    this.setXml(xml);
    return this;
  }

  public DecimalProperty example(String example) {
    this.setExample(example);
    return this;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy