當前位置: 首頁>>代碼示例>>Java>>正文


Java ADBException類代碼示例

本文整理匯總了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);
     
}
 
開發者ID:wandora-team,項目名稱:wandora,代碼行數:24,代碼來源:CalaisStub.java

示例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
    }
}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:16,代碼來源:AbstractTestCase.java

示例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);
}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:5,代碼來源:Array.java

示例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;
}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:7,代碼來源:Array.java

示例5: getOMElement

import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public OMElement getOMElement(QName parentQName, OMFactory factory) throws ADBException {
    throw new UnsupportedOperationException("Unimplemented method");
}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:4,代碼來源:ADBXMLStreamReaderTest.java

示例6: serialize

import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public void serialize(final QName parentQName,
                      XMLStreamWriter xmlWriter)
        throws XMLStreamException, ADBException {
    serialize(parentQName,xmlWriter,false);
}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:6,代碼來源:ADBXMLStreamReaderTest.java

示例7: serialize

import org.apache.axis2.databinding.ADBException; //導入依賴的package包/類
public void serialize(final QName parentQName,
                      XMLStreamWriter xmlWriter)
        throws XMLStreamException, ADBException {
    serialize(parentQName, xmlWriter, false);
}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:6,代碼來源:EchoString.java

示例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);
}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:4,代碼來源:ADBBeanUtil.java

示例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);
}
 
開發者ID:wandora-team,項目名稱:wandora,代碼行數:7,代碼來源:CalaisStub.java

示例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());
    
    

}
 
開發者ID:wandora-team,項目名稱:wandora,代碼行數:29,代碼來源:CalaisStub.java

示例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);

}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:15,代碼來源:Array.java

示例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);
     
}
 
開發者ID:wso2,項目名稱:wso2-axis2,代碼行數:19,代碼來源:EchoString.java

示例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);
}
 
開發者ID:wandora-team,項目名稱:wandora,代碼行數:8,代碼來源:CalaisStub.java

示例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);
            }
        

}
 
開發者ID:wandora-team,項目名稱:wandora,代碼行數:14,代碼來源:CalaisStub.java

示例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);
}
}
 
開發者ID:wandora-team,項目名稱:wandora,代碼行數:29,代碼來源:CalaisStub.java


注:本文中的org.apache.axis2.databinding.ADBException類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。