public class XmlExampleGenerator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLOSE_TAG |
protected Map<String,io.swagger.models.Model> |
examples |
protected org.slf4j.Logger |
LOGGER |
static String |
NEWLINE |
static String |
TAG_END |
static String |
TAG_START |
Constructor and Description |
---|
XmlExampleGenerator(Map<String,io.swagger.models.Model> examples) |
Modifier and Type | Method and 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) |
protected final org.slf4j.Logger LOGGER
public static String NEWLINE
public static String TAG_START
public static String CLOSE_TAG
public static String TAG_END
public String toXml(io.swagger.models.properties.Property property)
protected String toXml(io.swagger.models.Model model, int indent, Collection<String> path)
protected String modelImplToXml(io.swagger.models.ModelImpl model, int indent, Collection<String> path)
protected String toXml(String name, io.swagger.models.properties.Property property, int indent, Collection<String> path)
protected String getExample(io.swagger.models.properties.Property property)
property
- Property to get example string forprotected String indent(int indent)
Copyright © 2020. All rights reserved.