Package io.swagger.models.properties
Class ObjectProperty
- java.lang.Object
-
- io.swagger.models.properties.AbstractProperty
-
- io.swagger.models.properties.ObjectProperty
-
public class ObjectProperty extends AbstractProperty implements Property
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE-
Fields inherited from class io.swagger.models.properties.AbstractProperty
access, allowEmptyValue, booleanValue, description, example, format, name, position, readOnly, required, title, type, vendorExtensions, xml
-
-
Constructor Summary
Constructors Constructor Description ObjectProperty()ObjectProperty(Map<String,Property> properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectProperty_default(String _default)ObjectPropertyaccess(String access)ObjectPropertydescription(String description)booleanequals(Object o)ObjectPropertyexample(Object example)Map<String,Property>getProperties()List<String>getRequiredProperties()inthashCode()static booleanisType(String type)static booleanisType(String type, String format)ObjectPropertyname(String name)ObjectPropertyproperties(Map<String,Property> properties)ObjectPropertyproperty(String name, Property property)ObjectPropertyreadOnly()ObjectPropertyreadOnly(boolean readOnly)ObjectPropertyrequired(boolean required)voidsetProperties(Map<String,Property> properties)voidsetRequiredProperties(List<String> required)ObjectPropertytitle(String title)ObjectPropertyvendorExtension(String key, Object obj)ObjectPropertyxml(Xml xml)-
Methods inherited from class io.swagger.models.properties.AbstractProperty
allowEmptyValue, getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setExample, setFormat, setName, setPosition, setReadOnly, setRequired, setTitle, setType, setVendorExtension, setVendorExtensionMap, setVendorExtensions, setXml
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.swagger.models.properties.Property
getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setExample, setName, setPosition, setReadOnly, setRequired, setTitle, setXml
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
vendorExtension
public ObjectProperty vendorExtension(String key, Object obj)
-
isType
public static boolean isType(String type)
-
properties
public ObjectProperty properties(Map<String,Property> properties)
-
property
public ObjectProperty property(String name, Property property)
-
access
public ObjectProperty access(String access)
-
description
public ObjectProperty description(String description)
- Specified by:
descriptionin interfaceProperty- Overrides:
descriptionin classAbstractProperty
-
name
public ObjectProperty name(String name)
-
title
public ObjectProperty title(String title)
- Specified by:
titlein interfaceProperty- Overrides:
titlein classAbstractProperty
-
_default
public ObjectProperty _default(String _default)
-
readOnly
public ObjectProperty readOnly(boolean readOnly)
-
required
public ObjectProperty required(boolean required)
-
readOnly
public ObjectProperty readOnly()
- Overrides:
readOnlyin classAbstractProperty
-
xml
public ObjectProperty xml(Xml xml)
-
example
public ObjectProperty example(Object example)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractProperty
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractProperty
-
-