本文整理了Java中io.swagger.models.Xml
类的一些代码示例,展示了Xml
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Xml
类的具体详情如下:
包路径:io.swagger.models.Xml
类名称:Xml
暂无
代码示例来源:origin: io.syndesis.server/server-api-generator
static String determineArrayElementName(final String propertyName, final ArrayProperty array) {
final Xml xml = array.getXml();
if (xml == null || xml.getWrapped() == null || Boolean.FALSE.equals(xml.getWrapped())) {
return null;
}
final String xmlName = xml.getName();
if (xmlName != null) {
return xmlName;
}
return propertyName;
}
代码示例来源:origin: io.syndesis.rest/rest-connector-generator
public static boolean isAttribute(final Property property) {
final Xml xml = property.getXml();
if (xml == null) {
return false;
}
final Boolean attribute = xml.getAttribute();
return Boolean.TRUE.equals(attribute);
}
代码示例来源:origin: io.swagger/swagger-models
public Object clone() {
return new Xml()
.attribute(attribute == null ? null : Boolean.valueOf(attribute))
.name(name)
.namespace(namespace)
.prefix(prefix)
.wrapped(wrapped == null ? null : Boolean.valueOf(wrapped));
}
}
代码示例来源:origin: stackoverflow.com
Xml xml = new Xml("<car><manufacturer>toyota</manufacturer></car>");
assertEquals("toyota", xml.get("/car/manufacturer"));
代码示例来源:origin: io.swagger/swagger-inflector
if (impl.getXml() != null) {
Xml xml = impl.getXml();
name = xml.getName();
namespace = xml.getNamespace();
prefix = xml.getPrefix();
attribute = xml.getAttribute();
wrapped = xml.getWrapped() != null ? xml.getWrapped() : false;
代码示例来源:origin: io.syndesis.rest/rest-connector-generator
public static String xmlNameOrDefault(final Xml xml, final String defaultName) {
if (xml == null || xml.getName() == null) {
return defaultName;
}
return xml.getName();
}
代码示例来源:origin: io.syndesis.server/server-api-generator
public static boolean xmlIsWrapped(final ArrayProperty array) {
if (array == null || array.getXml() == null) {
return false;
}
return Boolean.TRUE.equals(array.getXml().getWrapped());
}
代码示例来源:origin: io.syndesis.rest/rest-connector-generator
public static String xmlTargetNamespaceOrNull(final ModelImpl model) {
if (model == null || model.getXml() == null) {
return null;
}
return model.getXml().getNamespace();
}
代码示例来源:origin: swagger-api/swagger-inflector
if (impl.getXml() != null) {
Xml xml = impl.getXml();
name = xml.getName();
namespace = xml.getNamespace();
prefix = xml.getPrefix();
attribute = xml.getAttribute();
wrapped = xml.getWrapped() != null ? xml.getWrapped() : false;
代码示例来源:origin: io.syndesis.server/server-api-generator
public static String xmlNameOrDefault(final Xml xml, final String defaultName) {
if (xml == null || xml.getName() == null) {
return defaultName;
}
return xml.getName();
}
代码示例来源:origin: io.syndesis.server/server-connector-generator
public static boolean xmlIsWrapped(final ArrayProperty array) {
if (array == null || array.getXml() == null) {
return false;
}
return Boolean.TRUE.equals(array.getXml().getWrapped());
}
代码示例来源:origin: io.syndesis.server/server-api-generator
public static String xmlTargetNamespaceOrNull(final ModelImpl model) {
if (model == null || model.getXml() == null) {
return null;
}
return model.getXml().getNamespace();
}
代码示例来源:origin: swagger-api/swagger-inflector
name = xml.getName();
namespace = xml.getNamespace();
prefix = xml.getPrefix();
attribute = xml.getAttribute();
wrapped = xml.getWrapped() != null ? xml.getWrapped() : false;
if (i.getXml() != null) {
Xml xml = i.getXml();
name = xml.getName();
attribute = xml.getAttribute();
namespace = xml.getNamespace();
prefix = xml.getPrefix();
wrapped = xml.getWrapped();
代码示例来源:origin: io.syndesis.server/server-connector-generator
static String determineArrayElementName(final String propertyName, final ArrayProperty array) {
final Xml xml = array.getXml();
if (xml == null || xml.getWrapped() == null || Boolean.FALSE.equals(xml.getWrapped())) {
return null;
}
final String xmlName = xml.getName();
if (xmlName != null) {
return xmlName;
}
return propertyName;
}
代码示例来源:origin: io.syndesis.server/server-connector-generator
public static String xmlNameOrDefault(final Xml xml, final String defaultName) {
if (xml == null || xml.getName() == null) {
return defaultName;
}
return xml.getName();
}
代码示例来源:origin: io.syndesis.rest/rest-connector-generator
public static boolean xmlIsWrapped(final ArrayProperty array) {
if (array == null || array.getXml() == null) {
return false;
}
return Boolean.TRUE.equals(array.getXml().getWrapped());
}
代码示例来源:origin: io.syndesis.server/server-api-generator
public static boolean isElement(final Property property) {
final Xml xml = property.getXml();
if (xml == null) {
return true;
}
final Boolean attribute = xml.getAttribute();
return attribute == null || Boolean.FALSE.equals(attribute);
}
代码示例来源:origin: io.syndesis.server/server-connector-generator
public static String xmlTargetNamespaceOrNull(final Property property) {
if (property == null || property.getXml() == null) {
return null;
}
return property.getXml().getNamespace();
}
代码示例来源:origin: io.swagger/swagger-inflector
name = xml.getName();
namespace = xml.getNamespace();
prefix = xml.getPrefix();
attribute = xml.getAttribute();
wrapped = xml.getWrapped() != null ? xml.getWrapped() : false;
if (i.getXml() != null) {
Xml xml = i.getXml();
name = xml.getName();
attribute = xml.getAttribute();
namespace = xml.getNamespace();
prefix = xml.getPrefix();
wrapped = xml.getWrapped();
代码示例来源:origin: io.syndesis.rest/rest-connector-generator
static String determineArrayElementName(final String propertyName, final ArrayProperty array) {
final Xml xml = array.getXml();
if (xml == null || xml.getWrapped() == null || Boolean.FALSE.equals(xml.getWrapped())) {
return null;
}
final String xmlName = xml.getName();
if (xmlName != null) {
return xmlName;
}
return propertyName;
}
内容来源于网络,如有侵权,请联系作者删除!