@Bean(bpi="name,url,*") public class License extends SwaggerElement
| Constructor and Description |
|---|
License()
Default constructor.
|
License(License copyFrom)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
License |
copy()
Make a deep copy of this object.
|
<T> T |
get(String property,
Class<T> type)
Generic property getter.
|
String |
getName()
Bean property getter:
|
URI |
getUrl()
Bean property getter:
|
boolean |
hasName()
Returns
|
boolean |
hasUrl()
Returns
|
Set<String> |
keySet()
Returns all the keys on this element.
|
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). |
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.
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 boolean hasName()
public boolean hasUrl()
public <T> T get(String property, Class<T> type)
SwaggerElement
Can be used to retrieve non-standard Swagger fields such as
get in class SwaggerElementproperty - 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 SwaggerElementproperty - The property name to set.value - The new value for the property.public Set<String> keySet()
SwaggerElementkeySet in class SwaggerElementCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.