Package io.swagger.codegen.v3.examples
Class XmlExampleGenerator
- java.lang.Object
 - 
- io.swagger.codegen.v3.examples.XmlExampleGenerator
 
 
- 
public class XmlExampleGenerator extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description XmlExampleGenerator(Map<String,io.swagger.v3.oas.models.media.Schema> examples) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcloseTag(String name)protected 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 StringopenTag(String name)protected Stringquote(String string)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) 
 - 
 
- 
- 
Method Detail
- 
toXml
public String toXml(io.swagger.v3.oas.models.media.Schema property)
 
- 
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)
 
- 
toXml
protected String toXml(String name, io.swagger.v3.oas.models.media.Schema property, int indent, Collection<String> path)
 
- 
getExample
protected String getExample(io.swagger.v3.oas.models.media.Schema property)
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
 
 
- 
indent
protected String indent(int indent)
 
 - 
 
 -