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

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

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

import com.wordnik.swagger.models.Xml;

public class ObjectProperty extends AbstractProperty implements Property {
  public ObjectProperty() {
    super.type = "object";
  }
  public ObjectProperty xml(Xml xml) {
    this.setXml(xml);
    return this;
  }

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

  //TODO: implement additional formats
  public static boolean isType(String type, String format) {
    if("object".equals(type))
      return true;
    else return false;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy