- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getNoNamespaceSchemaLocation()
方法的一些代码示例,展示了XMLMarshaller.getNoNamespaceSchemaLocation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLMarshaller.getNoNamespaceSchemaLocation()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.XMLMarshaller
类名称:XMLMarshaller
方法名:getNoNamespaceSchemaLocation
[英]Get the no namespace schema location set on this XMLMarshaller
[中]获取此XMLMarshaller上的无命名空间架构位置集
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public Object getProperty(String propName) throws PropertyException {
if (null == propName) {
throw new IllegalArgumentException();
}
if (propName.equals(Marshaller.JAXB_ENCODING)) {
return this.xmlBinder.getMarshaller().getEncoding();
}
if (propName.equals(Marshaller.JAXB_FORMATTED_OUTPUT)) {
return this.xmlBinder.getMarshaller().isFormattedOutput();
}
if (propName.equals(Marshaller.JAXB_FRAGMENT)) {
return this.xmlBinder.getMarshaller().isFragment();
}
if (propName.equals(Marshaller.JAXB_SCHEMA_LOCATION)) {
return this.xmlBinder.getMarshaller().getSchemaLocation();
}
if (propName.equals(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION)) {
return this.xmlBinder.getMarshaller().getNoNamespaceSchemaLocation();
}
throw new PropertyException(propName);
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy
@Override
public Object getProperty(String propName) throws PropertyException {
if (null == propName) {
throw new IllegalArgumentException();
}
if (propName.equals(Marshaller.JAXB_ENCODING)) {
return this.xmlBinder.getMarshaller().getEncoding();
}
if (propName.equals(Marshaller.JAXB_FORMATTED_OUTPUT)) {
return this.xmlBinder.getMarshaller().isFormattedOutput();
}
if (propName.equals(Marshaller.JAXB_FRAGMENT)) {
return this.xmlBinder.getMarshaller().isFragment();
}
if (propName.equals(Marshaller.JAXB_SCHEMA_LOCATION)) {
return this.xmlBinder.getMarshaller().getSchemaLocation();
}
if (propName.equals(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION)) {
return this.xmlBinder.getMarshaller().getNoNamespaceSchemaLocation();
}
throw new PropertyException(propName);
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy
return xmlMarshaller.getSchemaLocation();
} else if (JAXB_NO_NAMESPACE_SCHEMA_LOCATION.equals(key)) {
return xmlMarshaller.getNoNamespaceSchemaLocation();
} else if (Constants.JAXB_FRAGMENT.equals(key)) {
return xmlMarshaller.isFragment();
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
return xmlMarshaller.getSchemaLocation();
} else if (JAXB_NO_NAMESPACE_SCHEMA_LOCATION.equals(key)) {
return xmlMarshaller.getNoNamespaceSchemaLocation();
} else if (Constants.JAXB_FRAGMENT.equals(key)) {
return xmlMarshaller.isFragment();
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
private void addSchemaLocations(Document document, AbstractSession session) {
Element docElement = document.getDocumentElement();
NamespaceResolver resolver = new NamespaceResolver();
resolver.put(javax.xml.XMLConstants.XMLNS_ATTRIBUTE, javax.xml.XMLConstants.XMLNS_ATTRIBUTE_NS_URI);
resolver.put(XMLConstants.SCHEMA_INSTANCE_PREFIX, javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI);
if ((getSchemaLocation() != null) || (getNoNamespaceSchemaLocation() != null)) {
XMLField field = new XMLField("@xmlns:xsi");
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI, session);
}
if (getSchemaLocation() != null) {
XMLField field = new XMLField("@xsi:" + XMLConstants.SCHEMA_LOCATION);
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, getSchemaLocation(), session);
}
if (getNoNamespaceSchemaLocation() != null) {
XMLField field = new XMLField("@xsi:" + XMLConstants.NO_NS_SCHEMA_LOCATION);
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, getNoNamespaceSchemaLocation(), session);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
private void addSchemaLocations(Document document, AbstractSession session) {
Element docElement = document.getDocumentElement();
NamespaceResolver resolver = new NamespaceResolver();
resolver.put(javax.xml.XMLConstants.XMLNS_ATTRIBUTE, javax.xml.XMLConstants.XMLNS_ATTRIBUTE_NS_URI);
resolver.put(XMLConstants.SCHEMA_INSTANCE_PREFIX, javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI);
if ((getSchemaLocation() != null) || (getNoNamespaceSchemaLocation() != null)) {
XMLField field = new XMLField("@xmlns:xsi");
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI, session);
}
if (getSchemaLocation() != null) {
XMLField field = new XMLField("@xsi:" + XMLConstants.SCHEMA_LOCATION);
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, getSchemaLocation(), session);
}
if (getNoNamespaceSchemaLocation() != null) {
XMLField field = new XMLField("@xsi:" + XMLConstants.NO_NS_SCHEMA_LOCATION);
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, getNoNamespaceSchemaLocation(), session);
}
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
private void addSchemaLocations(Document document, AbstractSession session) {
Element docElement = document.getDocumentElement();
NamespaceResolver resolver = new NamespaceResolver();
resolver.put(XMLConstants.XMLNS, XMLConstants.XMLNS_URL);
resolver.put(XMLConstants.SCHEMA_INSTANCE_PREFIX, XMLConstants.SCHEMA_INSTANCE_URL);
if ((getSchemaLocation() != null) || (getNoNamespaceSchemaLocation() != null)) {
XMLField field = new XMLField("@xmlns:xsi");
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, XMLConstants.SCHEMA_INSTANCE_URL, session);
}
if (getSchemaLocation() != null) {
XMLField field = new XMLField("@xsi:" + XMLConstants.SCHEMA_LOCATION);
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, getSchemaLocation(), session);
}
if (getNoNamespaceSchemaLocation() != null) {
XMLField field = new XMLField("@xsi:" + XMLConstants.NO_NS_SCHEMA_LOCATION);
field.setNamespaceResolver(resolver);
XPathEngine.getInstance().create(field, docElement, getNoNamespaceSchemaLocation(), session);
}
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
String noNsSchemaLocation = getNoNamespaceSchemaLocation();
if (isXMLRoot) {
object = root.getObject();
if ((null != getSchemaLocation()) || (null != getNoNamespaceSchemaLocation()) || shouldWriteTypeAttribute) {
xsiPrefix = nr.resolveNamespaceURI(XMLConstants.SCHEMA_INSTANCE_URL);
if (null == xsiPrefix) {
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.setIndentString()方法的一些代码示例,展示了XMLMarshaller.setI
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.isWrapperAsCollectionName()方法的一些代码示例,展示了XMLMarsh
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.copyNamespaces()方法的一些代码示例,展示了XMLMarshaller.copyN
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getXmlHeader()方法的一些代码示例,展示了XMLMarshaller.getXmlH
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getJsonTypeConfiguration()方法的一些代码示例,展示了XMLMarsha
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.setNoNamespaceSchemaLocation()方法的一些代码示例,展示了XMLMa
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.setNamespacePrefixMapper()方法的一些代码示例,展示了XMLMarsha
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getProperties()方法的一些代码示例,展示了XMLMarshaller.getPro
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.setErrorHandler()方法的一些代码示例,展示了XMLMarshaller.setE
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getErrorHandler()方法的一些代码示例,展示了XMLMarshaller.getE
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.setNamespaceSeparator()方法的一些代码示例,展示了XMLMarshalle
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getNamespacePrefixMapper()方法的一些代码示例,展示了XMLMarsha
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.objectToXMLNode()方法的一些代码示例,展示了XMLMarshaller.obje
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.setFragment()方法的一些代码示例,展示了XMLMarshaller.setFragm
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.setWrapperAsCollectionName()方法的一些代码示例,展示了XMLMars
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getAttributePrefix()方法的一些代码示例,展示了XMLMarshaller.g
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getContext()方法的一些代码示例,展示了XMLMarshaller.getContex
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getCharacterEscapeHandler()方法的一些代码示例,展示了XMLMarsh
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.setMarshalEmptyCollections()方法的一些代码示例,展示了XMLMars
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getProperty()方法的一些代码示例,展示了XMLMarshaller.getPrope
我是一名优秀的程序员,十分优秀!