Save This Page
Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl » store » [javadoc | source]
    1   /*   Copyright 2004 The Apache Software Foundation
    2    *
    3    *   Licensed under the Apache License, Version 2.0 (the "License");
    4    *   you may not use this file except in compliance with the License.
    5    *   You may obtain a copy of the License at
    6    *
    7    *       http://www.apache.org/licenses/LICENSE-2.0
    8    *
    9    *   Unless required by applicable law or agreed to in writing, software
   10    *   distributed under the License is distributed on an "AS IS" BASIS,
   11    *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   12    *   See the License for the specific language governing permissions and
   13    *  limitations under the License.
   14    */
   15   
   16   package org.apache.xmlbeans.impl.store;
   17   
   18   import javax.xml.namespace.QName;
   19   
   20   import java.util.Iterator;
   21   import java.util.Locale;
   22   
   23   
   24   import javax.xml.transform.Source;
   25   
   26   import org.apache.xmlbeans.impl.soap.Detail;
   27   import org.apache.xmlbeans.impl.soap.DetailEntry;
   28   import org.apache.xmlbeans.impl.soap.MimeHeaders;
   29   import org.apache.xmlbeans.impl.soap.Name;
   30   import org.apache.xmlbeans.impl.soap.SOAPBody;
   31   import org.apache.xmlbeans.impl.soap.SOAPBodyElement;
   32   import org.apache.xmlbeans.impl.soap.SOAPElement;
   33   import org.apache.xmlbeans.impl.soap.SOAPEnvelope;
   34   import org.apache.xmlbeans.impl.soap.SOAPException;
   35   import org.apache.xmlbeans.impl.soap.SOAPFactory;
   36   import org.apache.xmlbeans.impl.soap.SOAPFault;
   37   import org.apache.xmlbeans.impl.soap.SOAPHeader;
   38   import org.apache.xmlbeans.impl.soap.SOAPHeaderElement;
   39   import org.apache.xmlbeans.impl.soap.SOAPPart;
   40   import org.w3c.dom.Document;
   41   import org.w3c.dom.Node;
   42   import org.w3c.dom.Element;
   43   import org.w3c.dom.Text;
   44   
   45   public interface Saaj
   46   {
   47       // Use in XmlOptions to enable SAAJ support in store
   48       
   49       public static final String SAAJ_IMPL =  "SAAJ_IMPL";
   50       
   51       public interface SaajCallback
   52       {
   53           void   setSaajData ( Node n, Object o );
   54           Object getSaajData ( Node n );
   55   
   56           Element createSoapElement ( QName name, QName parentName );
   57   
   58           Element importSoapElement ( Document doc, Element elem, boolean deep, QName parentName );
   59       }
   60   
   61       void setCallback ( SaajCallback callback );
   62   
   63       Class identifyElement ( QName name, QName parentName );
   64       
   65       void        soapNode_detachNode       ( org.apache.xmlbeans.impl.soap.Node soapNode );
   66       void        soapNode_recycleNode      ( org.apache.xmlbeans.impl.soap.Node node );
   67       String      soapNode_getValue         ( org.apache.xmlbeans.impl.soap.Node node );
   68       void        soapNode_setValue         ( org.apache.xmlbeans.impl.soap.Node node, String value );
   69       SOAPElement soapNode_getParentElement ( org.apache.xmlbeans.impl.soap.Node node );
   70       void        soapNode_setParentElement ( org.apache.xmlbeans.impl.soap.Node node, SOAPElement soapElement );
   71   
   72       void        soapElement_removeContents              ( SOAPElement soapElement );
   73       String      soapElement_getEncodingStyle            ( SOAPElement soapElement );
   74       void        soapElement_setEncodingStyle            ( SOAPElement soapElement, String encodingStyle );
   75       boolean     soapElement_removeNamespaceDeclaration  ( SOAPElement soapElement, String prefix );
   76       Iterator    soapElement_getAllAttributes            ( SOAPElement soapElement );
   77       Iterator    soapElement_getChildElements            ( SOAPElement parent );
   78       Iterator    soapElement_getNamespacePrefixes        ( SOAPElement soapElement );
   79       SOAPElement soapElement_addAttribute                ( SOAPElement soapElement, Name name, String value ) throws SOAPException;
   80       SOAPElement soapElement_addChildElement             ( SOAPElement parent, SOAPElement oldChild ) throws SOAPException;
   81       SOAPElement soapElement_addChildElement             ( SOAPElement soapElement, Name name ) throws SOAPException;
   82       SOAPElement soapElement_addChildElement             ( SOAPElement soapElement, String localName ) throws SOAPException;
   83       SOAPElement soapElement_addChildElement             ( SOAPElement soapElement, String localName, String prefix ) throws SOAPException;
   84       SOAPElement soapElement_addChildElement             ( SOAPElement soapElement, String localName, String prefix, String uri ) throws SOAPException;
   85       SOAPElement soapElement_addNamespaceDeclaration     ( SOAPElement soapElement, String prefix, String uri );
   86       SOAPElement soapElement_addTextNode                 ( SOAPElement soapElement, String data );
   87       String      soapElement_getAttributeValue           ( SOAPElement soapElement, Name name );
   88       Iterator    soapElement_getChildElements            ( SOAPElement parent, Name name );
   89       Name        soapElement_getElementName              ( SOAPElement soapElement );
   90       String      soapElement_getNamespaceURI             ( SOAPElement soapElement, String prefix );
   91       Iterator    soapElement_getVisibleNamespacePrefixes ( SOAPElement soapElement );
   92       boolean     soapElement_removeAttribute             ( SOAPElement soapElement, Name name );
   93   
   94       SOAPBody   soapEnvelope_addBody    ( SOAPEnvelope soapEnvelope ) throws SOAPException;
   95       SOAPBody   soapEnvelope_getBody    ( SOAPEnvelope soapEnvelope ) throws SOAPException;
   96       SOAPHeader soapEnvelope_getHeader  ( SOAPEnvelope soapEnvelope ) throws SOAPException;
   97       SOAPHeader soapEnvelope_addHeader  ( SOAPEnvelope soapEnvelope ) throws SOAPException;
   98       Name       soapEnvelope_createName ( SOAPEnvelope soapEnvelope, String localName );
   99       Name       soapEnvelope_createName ( SOAPEnvelope soapEnvelope, String localName, String prefix, String namespaceURI );
  100   
  101       Iterator          soapHeader_examineAllHeaderElements            ( SOAPHeader soapHeader );
  102       Iterator          soapHeader_extractAllHeaderElements            ( SOAPHeader soapHeader );
  103       Iterator          soapHeader_examineHeaderElements               ( SOAPHeader soapHeader, String actor );
  104       Iterator          soapHeader_examineMustUnderstandHeaderElements ( SOAPHeader soapHeader, String mustUnderstandString );
  105       Iterator          soapHeader_extractHeaderElements               ( SOAPHeader soapHeader, String actor );
  106       SOAPHeaderElement soapHeader_addHeaderElement                    ( SOAPHeader soapHeader, Name name );
  107   
  108       void         soapPart_removeAllMimeHeaders      ( SOAPPart soapPart );
  109       void         soapPart_removeMimeHeader          ( SOAPPart soapPart, String name );
  110       Iterator     soapPart_getAllMimeHeaders         ( SOAPPart soapPart );
  111       SOAPEnvelope soapPart_getEnvelope               ( SOAPPart soapPart );
  112       Source       soapPart_getContent                ( SOAPPart soapPart );
  113       void         soapPart_setContent                ( SOAPPart soapPart, Source source );
  114       String[]     soapPart_getMimeHeader             ( SOAPPart soapPart, String name );
  115       void         soapPart_addMimeHeader             ( SOAPPart soapPart, String name, String value );
  116       void         soapPart_setMimeHeader             ( SOAPPart soapPart, String name, String value );
  117       Iterator     soapPart_getMatchingMimeHeaders    ( SOAPPart soapPart, String[] names );
  118       Iterator     soapPart_getNonMatchingMimeHeaders ( SOAPPart soapPart, String[] names );
  119   
  120       boolean         soapBody_hasFault       ( SOAPBody soapBody );
  121       SOAPFault       soapBody_addFault       ( SOAPBody soapBody ) throws SOAPException;
  122       SOAPFault       soapBody_getFault       ( SOAPBody soapBody );
  123       SOAPBodyElement soapBody_addBodyElement ( SOAPBody soapBody, Name name );
  124       SOAPBodyElement soapBody_addDocument    ( SOAPBody soapBody, Document document );
  125       SOAPFault       soapBody_addFault       ( SOAPBody soapBody, Name name, String s ) throws SOAPException;
  126       SOAPFault       soapBody_addFault       ( SOAPBody soapBody, Name faultCode, String faultString, Locale locale ) throws SOAPException;
  127   
  128       Detail   soapFault_addDetail            ( SOAPFault soapFault ) throws SOAPException;
  129       Detail   soapFault_getDetail            ( SOAPFault soapFault );
  130       String   soapFault_getFaultActor        ( SOAPFault soapFault );
  131       String   soapFault_getFaultCode         ( SOAPFault soapFault );
  132       Name     soapFault_getFaultCodeAsName   ( SOAPFault soapFault );
  133       String   soapFault_getFaultString       ( SOAPFault soapFault );
  134       Locale   soapFault_getFaultStringLocale ( SOAPFault soapFault );
  135       void     soapFault_setFaultActor        ( SOAPFault soapFault, String faultActorString );
  136       void     soapFault_setFaultCode         ( SOAPFault soapFault, Name faultCodeName ) throws SOAPException;
  137       void     soapFault_setFaultCode         ( SOAPFault soapFault, String faultCode ) throws SOAPException;
  138       void     soapFault_setFaultString       ( SOAPFault soapFault, String faultString );
  139       void     soapFault_setFaultString       ( SOAPFault soapFault, String faultString, Locale locale );
  140   
  141       void    soapHeaderElement_setMustUnderstand ( SOAPHeaderElement soapHeaderElement, boolean mustUnderstand );
  142       boolean soapHeaderElement_getMustUnderstand ( SOAPHeaderElement soapHeaderElement );
  143       void    soapHeaderElement_setActor          ( SOAPHeaderElement soapHeaderElement, String actor );
  144       String  soapHeaderElement_getActor          ( SOAPHeaderElement soapHeaderElement );
  145   
  146       boolean soapText_isComment ( org.apache.xmlbeans.impl.soap.Text text );
  147   
  148       DetailEntry detail_addDetailEntry   ( Detail detail, Name name );
  149       Iterator    detail_getDetailEntries ( Detail detail );
  150   } 

Save This Page
Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl » store » [javadoc | source]