public final class XmlSchemaHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
XML_SCHEMA_NS |
static String |
XML_SCHEMA_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
static org.dom4j.Element |
addElement(org.dom4j.Element parent,
String... names) |
static org.dom4j.Element |
addElement(org.dom4j.Element parent,
String name) |
static boolean |
isAttribute(io.swagger.models.properties.Property property) |
static boolean |
isElement(io.swagger.models.properties.Property property) |
static String |
nameOf(io.swagger.models.ModelImpl model) |
static String |
nameOf(io.swagger.models.properties.Property property) |
static String |
nameOrDefault(io.swagger.models.properties.Property property,
String name) |
static org.dom4j.Element |
newXmlSchema(String targetNamespace) |
static String |
serialize(org.dom4j.Document document) |
static String |
toXsdType(String type) |
static boolean |
xmlIsWrapped(io.swagger.models.properties.ArrayProperty array) |
static String |
xmlNameOrDefault(io.swagger.models.Xml xml,
String defaultName) |
static String |
xmlTargetNamespaceOrNull(io.swagger.models.ModelImpl model) |
static String |
xmlTargetNamespaceOrNull(io.swagger.models.properties.Property property) |
public static final String XML_SCHEMA_NS
public static final String XML_SCHEMA_PREFIX
public static org.dom4j.Element addElement(org.dom4j.Element parent,
String name)
public static org.dom4j.Element addElement(org.dom4j.Element parent,
String... names)
public static boolean isAttribute(io.swagger.models.properties.Property property)
public static boolean isElement(io.swagger.models.properties.Property property)
public static String nameOf(io.swagger.models.ModelImpl model)
public static String nameOf(io.swagger.models.properties.Property property)
public static String nameOrDefault(io.swagger.models.properties.Property property, String name)
public static org.dom4j.Element newXmlSchema(String targetNamespace)
public static String serialize(org.dom4j.Document document)
public static boolean xmlIsWrapped(io.swagger.models.properties.ArrayProperty array)
public static String xmlNameOrDefault(io.swagger.models.Xml xml, String defaultName)
public static String xmlTargetNamespaceOrNull(io.swagger.models.ModelImpl model)
public static String xmlTargetNamespaceOrNull(io.swagger.models.properties.Property property)
Copyright © 2016–2019 Red Hat. All rights reserved.