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

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

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

import com.wordnik.swagger.models.Xml;

public class DateProperty extends AbstractProperty implements Property {
  public DateProperty() {
    super.type = "string";
    super.format = "date";
  }
  public DateProperty xml(Xml xml) {
    this.setXml(xml);
    return this;
  }  

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy