Class XmlExampleGenerator

java.lang.Object
io.swagger.codegen.v3.examples.XmlExampleGenerator

public class XmlExampleGenerator extends Object
  • Field Details

    • LOGGER

      protected final org.slf4j.Logger LOGGER
    • NEWLINE

      public static String NEWLINE
    • TAG_START

      public static String TAG_START
    • CLOSE_TAG

      public static String CLOSE_TAG
    • TAG_END

      public static String TAG_END
    • examples

      protected Map<String,io.swagger.v3.oas.models.media.Schema> examples
  • Constructor Details

    • XmlExampleGenerator

      public XmlExampleGenerator(Map<String,io.swagger.v3.oas.models.media.Schema> examples)
  • Method Details

    • 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)
    • quote

      protected String quote(String string)
    • 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
    • openTag

      protected String openTag(String name)
    • closeTag

      protected String closeTag(String name)
    • indent

      protected String indent(int indent)