- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getDescriptor()
方法的一些代码示例,展示了XMLMarshaller.getDescriptor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLMarshaller.getDescriptor()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.XMLMarshaller
类名称:XMLMarshaller
方法名:getDescriptor
[英]INTERNAL: Return the descriptor for the root object.
[中]内部:返回根对象的描述符。
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
protected XMLDescriptor getDescriptor(Object object, boolean isXMLRoot) {
if (isXMLRoot) {
return getDescriptor((XMLRoot) object);
} else {
return getDescriptor(object);
}
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
protected XMLDescriptor getDescriptor(Object object, AbstractSession session, boolean isXMLRoot) {
if (isXMLRoot) {
return getDescriptor((XMLRoot) object, session);
} else {
return getDescriptor(object, session);
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected XMLDescriptor getDescriptor(Object object, AbstractSession session, boolean isXMLRoot) {
if (isXMLRoot) {
return getDescriptor((Root) object, session);
} else {
return getDescriptor(object, session);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
protected XMLDescriptor getDescriptor(Object object, AbstractSession session, boolean isXMLRoot) {
if (isXMLRoot) {
return getDescriptor((Root) object, session);
} else {
return getDescriptor(object, session);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* Convert the given object to XML and update the given marshal record with
* that XML Document.
* @param object the object to marshal
* @param marshalRecord the marshalRecord to marshal the object to
*/
protected void marshal(Object object, AbstractSession session, MarshalRecord marshalRecord) {
boolean isXMLRoot = (object instanceof Root);
marshal(object, marshalRecord, session, getDescriptor(object, isXMLRoot), isXMLRoot);
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* Convert the given object to XML and update the given marshal record with
* that XML Document.
* @param object the object to marshal
* @param marshalRecord the marshalRecord to marshal the object to
*/
protected void marshal(Object object, AbstractSession session, MarshalRecord marshalRecord) {
boolean isXMLRoot = (object instanceof XMLRoot);
marshal(object, marshalRecord, session, getDescriptor(object, isXMLRoot), isXMLRoot);
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* Convert the given object to XML and update the given marshal record with
* that XML Document.
* @param object the object to marshal
* @param marshalRecord the marshalRecord to marshal the object to
*/
protected void marshal(Object object, AbstractSession session, MarshalRecord marshalRecord) {
boolean isXMLRoot = (object instanceof Root);
marshal(object, marshalRecord, session, getDescriptor(object, isXMLRoot), isXMLRoot);
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* PUBLIC:
* Convert the given object to an XML Document
* @param object the object to marshal
* @return the document which the specified object has been marshalled to
* @throws XMLMarshalException if an error occurred during marshalling
*/
public Document objectToXML(Object object) throws XMLMarshalException {
boolean isXMLRoot = (object instanceof XMLRoot);
XMLDescriptor xmlDescriptor = getDescriptor(object, isXMLRoot);
return objectToXML(object, xmlDescriptor, isXMLRoot);
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* Convert the given object to XML and update the given marshal record with
* that XML Document.
* @param object the object to marshal
* @param marshalRecord the marshalRecord to marshal the object to
*/
public void marshal(Object object, MarshalRecord marshalRecord) {
boolean isXMLRoot = (object instanceof XMLRoot);
AbstractSession session = null;
XMLDescriptor xmlDescriptor = null;
if(isXMLRoot){
try{
session = xmlContext.getSession(((XMLRoot)object).getObject());
if(session != null){
xmlDescriptor = getDescriptor(((XMLRoot)object).getObject(), session);
}
}catch (XMLMarshalException marshalException) {
if (!isSimpleXMLRoot((XMLRoot) object)) {
throw marshalException;
}
}
}else{
session = xmlContext.getSession(object);
xmlDescriptor = getDescriptor(object, session);
}
marshal(object, marshalRecord, session, xmlDescriptor, isXMLRoot);
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
/**
* Validate the given object.
* @param object A single object to validate
* @return true if this is a valid object, otherwise false
*/
public boolean validate(Object object) throws XMLMarshalException {
if (object == null) {
throw XMLMarshalException.nullArgumentException();
}
try {
// Create a new XML Record using the object's class name (not fully qualified) as the root
String name = ((XMLDescriptor)xmlContext.getSession(object).getDescriptor(object)).getDefaultRootElement();
if (name == null) {
String qualifiedName = object.getClass().getName();
int idx = qualifiedName.lastIndexOf('.');
name = qualifiedName.substring(idx + 1);
}
XMLDescriptor descriptor = marshaller.getDescriptor(object);
XMLRoot root = new XMLRoot();
root.setObject(object);
root.setLocalName(name);
XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
Document doc = xmlPlatform.createDocument();
marshaller.marshal(root, doc);
return xmlPlatform.validate(doc.getDocumentElement(), descriptor, getErrorHandler());
} catch (XMLPlatformException e) {
throw XMLMarshalException.validateException(e);
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* Validate the given object.
* @param object A single object to validate
* @return true if this is a valid object, otherwise false
*/
public boolean validate(Object object) throws XMLMarshalException {
if (object == null) {
throw XMLMarshalException.nullArgumentException();
}
try {
// Create a new XML Record using the object's class name (not fully qualified) as the root
String name = ((XMLDescriptor)xmlContext.getSession(object).getDescriptor(object)).getDefaultRootElement();
if (name == null) {
String qualifiedName = object.getClass().getName();
int idx = qualifiedName.lastIndexOf('.');
name = qualifiedName.substring(idx + 1);
}
XMLDescriptor descriptor = marshaller.getDescriptor(object);
Root root = new Root();
root.setObject(object);
root.setLocalName(name);
XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
Document doc = xmlPlatform.createDocument();
marshaller.marshal(root, doc);
return xmlPlatform.validate(doc.getDocumentElement(), descriptor, getErrorHandler());
} catch (XMLPlatformException e) {
throw XMLMarshalException.validateException(e);
}
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* Validate the given object.
* @param object A single object to validate
* @return true if this is a valid object, otherwise false
*/
public boolean validate(Object object) throws XMLMarshalException {
if (object == null) {
throw XMLMarshalException.nullArgumentException();
}
try {
// Create a new XML Record using the object's class name (not fully qualified) as the root
String name = ((XMLDescriptor)xmlContext.getSession(object).getDescriptor(object)).getDefaultRootElement();
if (name == null) {
String qualifiedName = object.getClass().getName();
int idx = qualifiedName.lastIndexOf('.');
name = qualifiedName.substring(idx + 1);
}
XMLDescriptor descriptor = marshaller.getDescriptor(object);
Root root = new Root();
root.setObject(object);
root.setLocalName(name);
XMLPlatform xmlPlatform = XMLPlatformFactory.getInstance().getXMLPlatform();
Document doc = xmlPlatform.createDocument();
marshaller.marshal(root, doc);
return xmlPlatform.validate(doc.getDocumentElement(), descriptor, getErrorHandler());
} catch (XMLPlatformException e) {
throw XMLMarshalException.validateException(e);
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
session = context.getSession(((Root)object).getObject());
if(session != null){
descriptor = getDescriptor(((Root)object).getObject(), session);
Class objectClass = object.getClass();
session = context.getSession(objectClass);
descriptor = getDescriptor(objectClass, session);
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
session = context.getSession(((Root)object).getObject());
if(session != null){
descriptor = getDescriptor(((Root)object).getObject(), session);
Class objectClass = object.getClass();
session = context.getSession(objectClass);
descriptor = getDescriptor(objectClass, session);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
session = xmlContext.getSession(((XMLRoot)object).getObject());
if(session != null){
xmlDescriptor = getDescriptor(((XMLRoot)object).getObject(), session);
xmlDescriptor = getDescriptor(object.getClass(), session);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
session = xmlContext.getSession(((XMLRoot)object).getObject());
if(session != null){
xmlDescriptor = getDescriptor(((XMLRoot)object).getObject(), session);
xmlDescriptor = getDescriptor(object.getClass(), session);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
session = xmlContext.getSession(((XMLRoot)object).getObject());
if(session != null){
xmlDescriptor = getDescriptor(((XMLRoot)object).getObject(), session);
xmlDescriptor = getDescriptor(object.getClass(), session);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
session = xmlContext.getSession(((XMLRoot)object).getObject());
if(session != null){
xmlDescriptor = getDescriptor(((XMLRoot)object).getObject(), session);
xmlDescriptor = getDescriptor(object.getClass(), session);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
session = xmlContext.getSession(((XMLRoot)object).getObject());
if(session != null){
descriptor = getDescriptor(((XMLRoot)object).getObject(), session);
descriptor = getDescriptor(object, session);
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
session = context.getSession(((Root)object).getObject());
if(session != null){
xmlDescriptor = getDescriptor(((Root)object).getObject(), session);
xmlDescriptor = getDescriptor(objectClass, session);
我正在将一个计步器连接到 android。当我在 setCharacteristicNotification 函数中执行以下行时,我得到的描述符为 Null BluetoothGattDescript
我在获取特征的描述符时遇到问题,它总是返回 null。我的代码有一小段: public static final String CHARACTERISTIC_UPDATE_NOTIFICATION_D
我总是在使用它之前检查 Message::GetDescriptor() 的返回值,但它什么时候会返回 null?是否不需要检查返回值? 文档: https://developers.google.c
本文整理了Java中org.eclipse.persistence.oxm.XMLMarshaller.getDescriptor()方法的一些代码示例,展示了XMLMarshaller.getDes
我正在使用 Xamarin 编写代码。我正在开发我的 IOS 应用程序,它允许我读取 BLE 设备、服务、特征值和通知激活。 我的 BLE 信标有一个包含两个自定义特征的自定义服务,并且都使用 CCC
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getDescriptor()方法
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping.getDescriptor()方法的一些代码示例,展示
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLInverseReferenceMapping.getDescriptor()方法的一些代码示例,展
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLObjectReferenceMapping.getDescriptor()方法的一些代码示例,展示
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLBinaryDataMapping.getDescriptor()方法的一些代码示例,展示了XMLB
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLAnyCollectionMapping.getDescriptor()方法的一些代码示例,展示了X
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLChoiceObjectMapping.getDescriptor()方法的一些代码示例,展示了XM
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLChoiceCollectionMapping.getDescriptor()方法的一些代码示例,展
本文整理了Java中org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.getDescriptor()方法的一些代码
本文整理了Java中org.apache.hadoop.yarn.proto.YarnServerNodemanagerRecoveryProtos.getDescriptor()方法的一些代码示例,
本文整理了Java中org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.getDescriptor()方法的一些代码示例,展
本文整理了Java中org.apache.hadoop.yarn.proto.YarnSecurityTestAMRMTokenProtos.getDescriptor()方法的一些代码示例,展示了Y
本文整理了Java中org.apache.hadoop.yarn.proto.YarnSecurityTestTokenProtos.getDescriptor()方法的一些代码示例,展示了YarnS
本文整理了Java中org.apache.hadoop.yarn.proto.YarnServerTimelineServerRecoveryProtos.getDescriptor()方法的一些代码
本文整理了Java中org.apache.hadoop.ha.proto.ZKFCProtocolProtos.getDescriptor()方法的一些代码示例,展示了ZKFCProtocolProt
我是一名优秀的程序员,十分优秀!