Package io.swagger.codegen.v3.examples
Class XmlExampleGenerator
java.lang.Object
io.swagger.codegen.v3.examples.XmlExampleGenerator
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionXmlExampleGenerator(Map<String, io.swagger.v3.oas.models.media.Schema> examples)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected StringgetExample(io.swagger.v3.oas.models.media.Schema property) Get the example string value for the given Property.protected Stringindent(int indent) protected StringmodelImplToXml(io.swagger.v3.oas.models.media.Schema schema, int indent, Collection<String> path) protected Stringprotected StringtoXml(io.swagger.v3.oas.models.media.Schema property) protected StringtoXml(io.swagger.v3.oas.models.media.Schema schema, int indent, Collection<String> path) protected StringtoXml(String name, io.swagger.v3.oas.models.media.Schema property, int indent, Collection<String> path)  
- 
Field Details
- 
LOGGER
protected final org.slf4j.Logger LOGGER - 
NEWLINE
 - 
TAG_START
 - 
CLOSE_TAG
 - 
TAG_END
 - 
examples
 
 - 
 - 
Constructor Details
- 
XmlExampleGenerator
 
 - 
 - 
Method Details
- 
toXml
 - 
toXml
protected String toXml(io.swagger.v3.oas.models.media.Schema schema, int indent, Collection<String> path)  - 
modelImplToXml
protected String modelImplToXml(io.swagger.v3.oas.models.media.Schema schema, int indent, Collection<String> path)  - 
quote
 - 
toXml
protected String toXml(String name, io.swagger.v3.oas.models.media.Schema property, int indent, Collection<String> path)  - 
getExample
Get the example string value for the given Property. If an example value was not provided in the specification, a default will be generated.- Parameters:
 property- Property to get example string for- Returns:
 - Example String
 
 - 
openTag
 - 
closeTag
 - 
indent
 
 -