@Bean(properties="name,url,email,*") public class Contact extends SwaggerElement
Constructor and Description |
---|
Contact() |
Modifier and Type | Method and Description |
---|---|
Contact |
email(Object value)
Same as
setEmail(String) . |
<T> T |
get(String property,
Class<T> type)
Generic property getter.
|
String |
getEmail()
Bean property getter:
|
String |
getName()
Bean property getter:
|
URI |
getUrl()
Bean property getter:
|
Contact |
name(Object value)
Same as
setName(String) . |
Contact |
set(String property,
Object value)
Generic property setter.
|
Contact |
setEmail(String value)
Bean property setter:
|
Contact |
setName(String value)
Bean property setter:
|
Contact |
setUrl(URI value)
Bean property setter:
|
Contact |
url(Object value)
Same as
setUrl(URI) . |
getExtraProperties, isStrict, strict, strict, toString
public Contact()
public String getName()
The identifying name of the contact person/organization.
public Contact setName(String value)
The identifying name of the contact person/organization.
value
- The new value for this property.
public Contact name(Object value)
setName(String)
.value
- The new value for this property.
toString()
.
public URI getUrl()
The URL pointing to the contact information.
public Contact setUrl(URI value)
The value can be of any of the following types: URI
, URL
, String
.
Strings must be valid URIs.
URIs defined by UriResolver
can be used for values.
value
- The new value for this property.
public Contact url(Object value)
setUrl(URI)
.value
- The new value for this property.
new URI(value.toString())
.
public String getEmail()
The email address of the contact person/organization.
public Contact setEmail(String value)
The email address of the contact person/organization.
value
- The new value for this property.
public Contact email(Object value)
setEmail(String)
.value
- The new value for this property.
toString()
.
public <T> T get(String property, Class<T> type)
SwaggerElement
Can be used to retrieve non-standard Swagger fields such as
get
in class SwaggerElement
property
- The property name to retrieve.type
- The datatype to cast the value to.public Contact set(String property, Object value)
SwaggerElement
Can be used to set non-standard Swagger fields such as
set
in class SwaggerElement
property
- The property name to set.value
- The new value for the property.Copyright © 2018 Apache. All rights reserved.