@Bean(properties="name,url,*") public class License extends SwaggerElement
Constructor and Description |
---|
License() |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(String property,
Class<T> type)
Generic property getter.
|
String |
getName()
Bean property getter:
|
URI |
getUrl()
Bean property getter:
|
License |
name(Object value)
Same as
setName(String) . |
License |
set(String property,
Object value)
Generic property setter.
|
License |
setName(String value)
Bean property setter:
|
License |
setUrl(URI value)
Bean property setter:
|
License |
url(Object value)
Same as
setUrl(URI) . |
getExtraProperties, isStrict, strict, strict, toString
public License()
public String getName()
The license name used for the API.
public License setName(String value)
The license name used for the API.
value
- The new value for this property.
public License name(Object value)
setName(String)
.value
- The new value for this property.
toString()
.
public URI getUrl()
A URL to the license used for the API.
public License setUrl(URI value)
A URL to the license used for the API.
value
- The new value for this property.
UriResolver
can be used for values.
public License url(Object value)
setUrl(URI)
.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 License 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.