Package io.swagger.codegen.examples
Class XmlExampleGenerator
- java.lang.Object
-
- io.swagger.codegen.examples.XmlExampleGenerator
-
public class XmlExampleGenerator extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlExampleGenerator(Map<String,io.swagger.models.Model> examples)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
closeTag(String name)
protected String
getExample(io.swagger.models.properties.Property property)
Get the example string value for the given Property.protected String
indent(int indent)
protected String
modelImplToXml(io.swagger.models.ModelImpl model, int indent, Collection<String> path)
protected String
openTag(String name)
protected String
quote(String string)
protected String
toXml(io.swagger.models.Model model, int indent, Collection<String> path)
String
toXml(io.swagger.models.properties.Property property)
protected String
toXml(String name, io.swagger.models.properties.Property property, int indent, Collection<String> path)
-
-
-
Method Detail
-
toXml
public String toXml(io.swagger.models.properties.Property property)
-
toXml
protected String toXml(io.swagger.models.Model model, int indent, Collection<String> path)
-
modelImplToXml
protected String modelImplToXml(io.swagger.models.ModelImpl model, int indent, Collection<String> path)
-
toXml
protected String toXml(String name, io.swagger.models.properties.Property property, int indent, Collection<String> path)
-
getExample
protected String getExample(io.swagger.models.properties.Property 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)
-
-