本文整理匯總了Java中org.apache.axis2.databinding.ADBException類的典型用法代碼示例。如果您正苦於以下問題:Java ADBException類的具體用法?Java ADBException怎麽用?Java ADBException使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ADBException類屬於org.apache.axis2.databinding包,在下文中一共展示了ADBException類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getOMElement
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
/**
*
* @param parentQName
* @param factory
* @return org.apache.axiom.om.OMElement
*/
public org.apache.axiom.om.OMElement getOMElement (
final javax.xml.namespace.QName parentQName,
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
org.apache.axiom.om.OMDataSource dataSource =
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
EnlightenResponse.this.serialize(MY_QNAME,factory,xmlWriter);
}
};
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
MY_QNAME,factory,dataSource);
}
示例2: assertSerializationFailure
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
/**
* Assert that serializing the given bean should result in an {@link ADBException}.
*
* @param bean the bean to serialize
* @throws Exception
*/
public static void assertSerializationFailure(ADBBean bean) throws Exception {
try {
OMElement omElement = bean.getOMElement(ADBBeanUtil.getQName(bean.getClass()), OMAbstractFactory.getOMFactory());
omElement.toStringWithConsume();
fail("Expected ADBException");
} catch (ADBException ex) {
// OK: expected
}
}
示例3: serialize
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public void serialize(final javax.xml.namespace.QName parentQName,
XMLStreamWriter xmlWriter) throws XMLStreamException, ADBException {
serialize(parentQName, xmlWriter, false);
}
示例4: getPullParser
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
/**
* databinding method to get an XML representation of this object
*/
public XMLStreamReader getPullParser(javax.xml.namespace.QName qName) throws ADBException {
return null;
}
示例5: getOMElement
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException {
throw new UnsupportedOperationException("Unimplemented method");
}
示例6: serialize
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public void serialize(final QName parentQName,
XMLStreamWriter xmlWriter)
throws XMLStreamException, ADBException {
serialize(parentQName,xmlWriter,false);
}
示例7: serialize
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public void serialize(final QName parentQName,
XMLStreamWriter xmlWriter)
throws XMLStreamException, ADBException {
serialize(parentQName, xmlWriter, false);
}
示例8: getOMElement
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
private static <T> OMElement getOMElement(Object bean, ADBHelper<T> helper, QName qname, OMFactory factory) throws ADBException {
return helper.getOMElement(helper.getBeanClass().cast(bean), qname, factory);
}
示例9: serialize
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public void serialize(final javax.xml.namespace.QName parentQName,
final org.apache.axiom.om.OMFactory factory,
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
serialize(parentQName,factory,xmlWriter,false);
}
示例10: getPullParser
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
/**
* databinding method to get an XML representation of this object
*
*/
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
throws org.apache.axis2.databinding.ADBException{
java.util.ArrayList elementList = new java.util.ArrayList();
java.util.ArrayList attribList = new java.util.ArrayList();
elementList.add(new javax.xml.namespace.QName("http://clearforest.com/",
"EnlightenResult"));
if (localEnlightenResult != null){
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnlightenResult));
} else {
throw new org.apache.axis2.databinding.ADBException("EnlightenResult cannot be null!!");
}
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
}
示例11: getOMElement
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
/**
* @param parentQName
* @param factory
* @return org.apache.axiom.om.OMElement
*/
public OMElement getOMElement(
final javax.xml.namespace.QName parentQName,
final OMFactory factory) throws ADBException {
OMDataSource dataSource = new ADBDataSource(this, parentQName);
return factory.createOMElement(dataSource,parentQName);
}
示例12: getOMElement
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
/**
*
* @param parentQName
* @param factory
* @return org.apache.axiom.om.OMElement
*/
public org.apache.axiom.om.OMElement getOMElement (
final javax.xml.namespace.QName parentQName,
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
org.apache.axiom.om.OMDataSource dataSource =
new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
MY_QNAME,factory,dataSource);
}
示例13: getTypeObject
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public static java.lang.Object getTypeObject(java.lang.String namespaceURI,
java.lang.String typeName,
javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
throw new org.apache.axis2.databinding.ADBException("Unsupported type " + namespaceURI + " " + typeName);
}
示例14: toOM
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
private org.apache.axiom.om.OMElement toOM(org.wandora.application.tools.extractors.opencalais.webservice.CalaisStub.Enlighten param, boolean optimizeContent)
throws org.apache.axis2.AxisFault {
try{
return param.getOMElement(org.wandora.application.tools.extractors.opencalais.webservice.CalaisStub.Enlighten.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
示例15: toEnvelope
import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory,
java.lang.String param1,
java.lang.String param2,
java.lang.String param3,
org.wandora.application.tools.extractors.opencalais.webservice.CalaisStub.Enlighten dummyWrappedType,
boolean optimizeContent) throws org.apache.axis2.AxisFault{
try{
org.wandora.application.tools.extractors.opencalais.webservice.CalaisStub.Enlighten wrappedType = new org.wandora.application.tools.extractors.opencalais.webservice.CalaisStub.Enlighten();
wrappedType.setLicenseID(param1);
wrappedType.setContent(param2);
wrappedType.setParamsXML(param3);
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody().addChild(wrappedType.getOMElement(org.wandora.application.tools.extractors.opencalais.webservice.CalaisStub.Enlighten.MY_QNAME,factory));
return emptyEnvelope;
} catch(org.apache.axis2.databinding.ADBException e){
throw org.apache.axis2.AxisFault.makeFault(e);
}
}