public abstract class SwaggerElement extends Object
Modifier and Type | Method and Description |
---|---|
ObjectMap |
asMap()
Returns a copy of this swagger element as a modifiable map.
|
Set<String> |
extraKeys()
Generic property keyset.
|
Object |
get(String property)
Generic property getter.
|
<T> T |
get(String property,
Class<T> type)
Generic property getter.
|
protected boolean |
isStrict()
Returns
|
Set<String> |
keySet()
Returns all the keys on this element.
|
SwaggerElement |
set(String property,
Object value)
Generic property setter.
|
protected SwaggerElement |
strict()
Sets strict mode on this bean.
|
protected SwaggerElement |
strict(Object value)
Sets strict mode on this bean.
|
String |
toString() |
protected boolean isStrict()
protected SwaggerElement strict()
protected SwaggerElement strict(Object value)
value
- The new value for this property.
Boolean.valueOf (value.toString())
.
public <T> T get(String property, Class<T> type)
Can be used to retrieve non-standard Swagger fields such as
property
- The property name to retrieve.type
- The datatype to cast the value to.@Beanp(value="*") public Object get(String property)
Can be used to retrieve non-standard Swagger fields such as
property
- The property name to retrieve.@Beanp(value="*") public SwaggerElement set(String property, Object value)
Can be used to set non-standard Swagger fields such as
property
- The property name to set.value
- The new value for the property.@Beanp(value="*") public Set<String> extraKeys()
public Set<String> keySet()
public ObjectMap asMap()
Each call produces a new map.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.