@Bean(properties="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) . |
asMap, extraKeys, get, 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 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 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.public Set<String> keySet()
SwaggerElement
keySet
in class SwaggerElement
Copyright © 2018 Apache. All rights reserved.