本文整理了Java中org.eclipse.persistence.oxm.XMLUnmarshaller.getErrorHandler()
方法的一些代码示例,展示了XMLUnmarshaller.getErrorHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLUnmarshaller.getErrorHandler()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.XMLUnmarshaller
类名称:XMLUnmarshaller
方法名:getErrorHandler
[英]Get the ErrorHandler set on this XMLUnmarshaller
[中]获取此XMLUnmarshaller上的ErrorHandler集
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public ErrorHandler getErrorHandler() {
return this.unmarshaller.getErrorHandler();
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
public ErrorHandler getErrorHandler() {
return this.unmarshaller.getErrorHandler();
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
public ErrorHandler getErrorHandler() {
return this.unmarshaller.getErrorHandler();
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
* If the UnmarshalRecord has a ReferenceResolver, tell it to resolve its
* references.
* @since EclipseLink 2.5.0
*/
public void resolveReferences(CoreAbstractSession abstractSession, IDResolver idResolver) {
if(null != referenceResolver) {
referenceResolver.resolveReferences(abstractSession, idResolver, unmarshaller.getErrorHandler());
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* INTERNAL:
* If the UnmarshalRecord has a ReferenceResolver, tell it to resolve its
* references.
* @since EclipseLink 2.5.0
*/
public void resolveReferences(CoreAbstractSession abstractSession, IDResolver idResolver) {
if(null != referenceResolver) {
referenceResolver.resolveReferences(abstractSession, idResolver, unmarshaller.getErrorHandler());
}
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy
public Object convertDataValueToObjectValue(Object dataValue, Session session, XMLUnmarshaller unmarshaller) {
if(dataValue instanceof org.w3c.dom.Element) {
ErrorHandler handler = unmarshaller.getErrorHandler();
Result result = null;
if(handler != null && handler instanceof JAXBErrorHandler) {
result = domHandler.createUnmarshaller(((JAXBErrorHandler)handler).getValidationEventHandler());
} else {
result = domHandler.createUnmarshaller(null);
}
if(result instanceof DOMResult){
((DOMResult) result).setNode((org.w3c.dom.Element)dataValue);
}else{
xmlPlatform.newXMLTransformer().transform((org.w3c.dom.Element)dataValue, result);
}
return domHandler.getElement(result);
}
return dataValue;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
public Object convertDataValueToObjectValue(Object dataValue, Session session, XMLUnmarshaller unmarshaller) {
if(dataValue instanceof org.w3c.dom.Element) {
ErrorHandler handler = unmarshaller.getErrorHandler();
Result result = null;
if(handler != null && handler instanceof JAXBErrorHandler) {
result = domHandler.createUnmarshaller(((JAXBErrorHandler)handler).getValidationEventHandler());
} else {
result = domHandler.createUnmarshaller(null);
}
if(result instanceof DOMResult){
((DOMResult) result).setNode((org.w3c.dom.Element)dataValue);
}else{
xmlPlatform.newXMLTransformer().transform((org.w3c.dom.Element)dataValue, result);
}
return domHandler.getElement(result);
}
return dataValue;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy
if(unmarshaller == null || unmarshaller.getErrorHandler() == null){
throw ConversionException.couldNotBeConverted(dataValue, boundType, ex);
unmarshaller.getErrorHandler().warning(new SAXParseException(null, null, ex));
return null;
} catch (SAXException e) {
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
if(unmarshaller.getErrorHandler() == null){
throw ConversionException.couldNotBeConverted(dataValue, boundType, ex);
unmarshaller.getErrorHandler().warning(new SAXParseException(null, null, ex));
return null;
} catch (SAXException e) {
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy
staxReader.setErrorHandler(xmlUnmarshaller.getErrorHandler());
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
staxReader.setErrorHandler(xmlUnmarshaller.getErrorHandler());
内容来源于网络,如有侵权,请联系作者删除!