本文整理了Java中io.swagger.v3.oas.models.media.XML.<init>()
方法的一些代码示例,展示了XML.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XML.<init>()
方法的具体详情如下:
包路径:io.swagger.v3.oas.models.media.XML
类名称:XML
方法名:<init>
暂无
代码示例来源:origin: swagger-api/swagger-core
private static XML getXml(Schema property) {
final XML existing = property.getXml();
if (existing != null) {
return existing;
}
final XML created = new XML();
property.setXml(created);
return created;
}
代码示例来源:origin: swagger-api/swagger-core
protected XML resolveXml(Annotated a, Annotation[] annotations, io.swagger.v3.oas.annotations.media.Schema schema) {
// if XmlRootElement annotation, construct an Xml object and attach it to the model
XmlRootElement rootAnnotation = null;
if (a != null) {
rootAnnotation = a.getAnnotation(XmlRootElement.class);
}
if (rootAnnotation == null) {
if (annotations != null) {
for (Annotation ann: annotations) {
if (ann instanceof XmlRootElement) {
rootAnnotation = (XmlRootElement)ann;
break;
}
}
}
}
if (rootAnnotation != null && !"".equals(rootAnnotation.name()) && !"##default".equals(rootAnnotation.name())) {
XML xml = new XML().name(rootAnnotation.name());
if (rootAnnotation.namespace() != null && !"".equals(rootAnnotation.namespace()) && !"##default".equals(rootAnnotation.namespace())) {
xml.namespace(rootAnnotation.namespace());
}
return xml;
}
return null;
}
代码示例来源:origin: swagger-api/swagger-core
XmlElement xmlElement = (XmlElement) annotation;
if (xmlElement != null && xmlElement.name() != null && !"".equals(xmlElement.name()) && !"##default".equals(xmlElement.name())) {
XML xml = items.getXml() != null ? items.getXml() : new XML();
xml.setName(xmlElement.name());
items.setXml(xml);
代码示例来源:origin: ppdai-incubator/raptor
/**
* https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#xmlObject
*
* @return
*/
protected XML getXml() {
XML xml = new XML();
return xml;
}
代码示例来源:origin: io.swagger.core.v3/swagger-core
private static XML getXml(Schema property) {
final XML existing = property.getXml();
if (existing != null) {
return existing;
}
final XML created = new XML();
property.setXml(created);
return created;
}
代码示例来源:origin: swagger-api/swagger-parser
return null;
XML xml = new XML();
代码示例来源:origin: org.openapitools.swagger.parser/swagger-parser-v3
return null;
XML xml = new XML();
代码示例来源:origin: io.swagger.parser.v3/swagger-parser-v3
return null;
XML xml = new XML();
代码示例来源:origin: io.swagger.core.v3/swagger-core
protected XML resolveXml(Annotated a, Annotation[] annotations, io.swagger.v3.oas.annotations.media.Schema schema) {
// if XmlRootElement annotation, construct an Xml object and attach it to the model
XmlRootElement rootAnnotation = null;
if (a != null) {
rootAnnotation = a.getAnnotation(XmlRootElement.class);
}
if (rootAnnotation == null) {
if (annotations != null) {
for (Annotation ann: annotations) {
if (ann instanceof XmlRootElement) {
rootAnnotation = (XmlRootElement)ann;
break;
}
}
}
}
if (rootAnnotation != null && !"".equals(rootAnnotation.name()) && !"##default".equals(rootAnnotation.name())) {
XML xml = new XML().name(rootAnnotation.name());
if (rootAnnotation.namespace() != null && !"".equals(rootAnnotation.namespace()) && !"##default".equals(rootAnnotation.namespace())) {
xml.namespace(rootAnnotation.namespace());
}
return xml;
}
return null;
}
代码示例来源:origin: io.swagger.core.v3/swagger-core
XmlElement xmlElement = (XmlElement) annotation;
if (xmlElement != null && xmlElement.name() != null && !"".equals(xmlElement.name()) && !"##default".equals(xmlElement.name())) {
XML xml = items.getXml() != null ? items.getXml() : new XML();
xml.setName(xmlElement.name());
items.setXml(xml);
内容来源于网络,如有侵权,请联系作者删除!