Package org.apache.juneau.bean.swagger
Class SwaggerElement
java.lang.Object
org.apache.juneau.bean.swagger.SwaggerElement
- Direct Known Subclasses:
- Contact,- ExternalDocumentation,- HeaderInfo,- Info,- Items,- License,- Operation,- ParameterInfo,- ResponseInfo,- SchemaInfo,- SecurityScheme,- Swagger,- Tag,- Xml
Root class for all Swagger beans.
 
See Also:
- 
Method SummaryModifier and TypeMethodDescriptionasMap()Returns a copy of this swagger element as a modifiable map.Generic property keyset.Generic property getter.<T> TGeneric property getter.protected booleanisStrict()Returnstrue if contents should be validated per the Swagger spec.keySet()Returns all the keys on this element.Generic property setter.protected SwaggerElementstrict()Sets strict mode on this bean.protected SwaggerElementSets strict mode on this bean.toString()
- 
Method Details- 
isStrictReturnstrue if contents should be validated per the Swagger spec.- Returns:
- true if contents should be validated per the Swagger spec.
 
- 
strictSets strict mode on this bean.- Returns:
- This object.
 
- 
strictSets strict mode on this bean.- Parameters:
- value- The new value for this property.
 Non-boolean values will be converted to boolean using- Boolean..- valueOf (value.toString())
- Returns:
- This object.
 
- 
getGeneric property getter.Can be used to retrieve non-standard Swagger fields such as "$ref" .- Type Parameters:
- T- The datatype to cast the value to.
- Parameters:
- property- The property name to retrieve.
- type- The datatype to cast the value to.
- Returns:
- The property value, or null if the property does not exist or is not set.
 
- 
getGeneric property getter.Can be used to retrieve non-standard Swagger fields such as "$ref" .- Parameters:
- property- The property name to retrieve. Must not be- null .
- Returns:
- The property value, or null if the property does not exist or is not set.
 
- 
setGeneric property setter.Can be used to set non-standard Swagger fields such as "$ref" .- Parameters:
- property- The property name to set. Must not be- null .
- value- The new value for the property.
- Returns:
- This object.
 
- 
extraKeysGeneric property keyset.- Returns:
- All the non-standard keys on this element.
   
 Nevernull .
 
- 
keySetReturns all the keys on this element.- Returns:
- All the keys on this element.
   
 Nevernull .
 
- 
asMapReturns a copy of this swagger element as a modifiable map.Each call produces a new map. - Returns:
- A map containing all the values in this swagger element.
 
- 
toString
 
-