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

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

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

import com.wordnik.swagger.models.Xml;

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy