org.apache.axis2.databinding.utils
Class MultirefHelper

java.lang.Object
  extended by org.apache.axis2.databinding.utils.MultirefHelper

public class MultirefHelper
extends java.lang.Object


Field Summary
static java.lang.String SOAP11_REF_ATTR
           
static java.lang.String SOAP12_REF_ATTR
           
 
Constructor Summary
MultirefHelper(org.apache.axiom.om.OMElement parent)
           
 
Method Summary
 void clean()
           
static java.lang.String getAttvalue(org.apache.axiom.om.OMAttribute omatribute)
           
static org.apache.axiom.om.OMElement getClonedOMElement(org.apache.axiom.om.OMElement omElement, org.apache.axiom.om.OMFactory omFactory)
          returns an cloned om element for this OMElement
 java.lang.Object getObject(java.lang.String id)
           
 org.apache.axiom.om.OMElement getOMElement(java.lang.String id)
           
 org.apache.axiom.om.OMElement processElementforRefs(org.apache.axiom.om.OMElement elemnts)
           
static void processHrefAttributes(java.util.Map idAndOMElementMap, org.apache.axiom.om.OMElement elementToProcess, org.apache.axiom.om.OMFactory omFactory)
           
static void processHrefAttributes(org.apache.axiom.soap.SOAPEnvelope soapEnvelope)
          this method is used to process the href attributes which may comes with the incomming soap mesaage the real argument blue here we assume first child of the soap body has the main object structure and others contain the multiref parts.
 org.apache.axiom.om.OMElement processOMElementRef(java.lang.String id)
           
 java.lang.Object processRef(java.lang.Class javatype, java.lang.String id, ObjectSupplier objectSupplier)
           
static org.apache.axiom.om.OMAttribute processRefAtt(org.apache.axiom.om.OMElement omElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOAP12_REF_ATTR

public static final java.lang.String SOAP12_REF_ATTR
See Also:
Constant Field Values

SOAP11_REF_ATTR

public static final java.lang.String SOAP11_REF_ATTR
See Also:
Constant Field Values
Constructor Detail

MultirefHelper

public MultirefHelper(org.apache.axiom.om.OMElement parent)
Method Detail

getObject

public java.lang.Object getObject(java.lang.String id)

getOMElement

public org.apache.axiom.om.OMElement getOMElement(java.lang.String id)

processOMElementRef

public org.apache.axiom.om.OMElement processOMElementRef(java.lang.String id)
                                                  throws AxisFault
Throws:
AxisFault

processElementforRefs

public org.apache.axiom.om.OMElement processElementforRefs(org.apache.axiom.om.OMElement elemnts)
                                                    throws AxisFault
Throws:
AxisFault

processRef

public java.lang.Object processRef(java.lang.Class javatype,
                                   java.lang.String id,
                                   ObjectSupplier objectSupplier)
                            throws AxisFault
Throws:
AxisFault

getAttvalue

public static java.lang.String getAttvalue(org.apache.axiom.om.OMAttribute omatribute)

processRefAtt

public static org.apache.axiom.om.OMAttribute processRefAtt(org.apache.axiom.om.OMElement omElement)

clean

public void clean()

processHrefAttributes

public static void processHrefAttributes(org.apache.axiom.soap.SOAPEnvelope soapEnvelope)
                                  throws AxisFault
this method is used to process the href attributes which may comes with the incomming soap mesaage the real argument blue here we assume first child of the soap body has the main object structure and others contain the multiref parts. Soap spec says that those multiref parts must be top level elements.

Parameters:
soapEnvelope -
Throws:
AxisFault

processHrefAttributes

public static void processHrefAttributes(java.util.Map idAndOMElementMap,
                                         org.apache.axiom.om.OMElement elementToProcess,
                                         org.apache.axiom.om.OMFactory omFactory)
                                  throws AxisFault
Throws:
AxisFault

getClonedOMElement

public static org.apache.axiom.om.OMElement getClonedOMElement(org.apache.axiom.om.OMElement omElement,
                                                               org.apache.axiom.om.OMFactory omFactory)
                                                        throws AxisFault
returns an cloned om element for this OMElement

Parameters:
omElement -
Returns:
cloned omElement
Throws:
AxisFault


Copyright © 2007 Apache Web Services Project. All Rights Reserved.