com.sapportals.portal.prt.service.soap.util
Class XMLValueExtractor

java.lang.Object
  |
  +--com.sapportals.portal.prt.service.soap.util.XMLValueExtractor

public class XMLValueExtractor
extends java.lang.Object


Constructor Summary
XMLValueExtractor()
           
 
Method Summary
static java.lang.String getAttributeValue(javax.xml.soap.SOAPElement element, java.lang.String attribute_name)
           
static javax.xml.soap.Name getNameForReference(javax.xml.soap.SOAPElement element, ISOAPMessageContext context)
          Extracts the name if the Element is containing a ref, if not return null;
static QName getQNameForAttribute(javax.xml.soap.SOAPElement element, javax.xml.soap.Name name, ISOAPMessageContext context)
          Deprecated.  
static QName getQNameForAttributeValue(java.lang.String value, ISOAPMessageContext context)
          Deprecated.  
static QName getQNameForAttributeValueFromConfig(java.lang.String value, java.lang.String namespace)
          specific to soapconfig format has to now the exact value and namepace
static QName getQNameForElement(javax.xml.soap.SOAPElement element, ISOAPMessageContext context)
           
static QName getQNameForElement(javax.xml.soap.SOAPElement element, ISOAPMessageContext context, boolean arrayType)
           
static QNameURI getQNameURIForElement(javax.xml.soap.SOAPElement element, ISOAPMessageContext context)
           
static QNameURI getQNameURIForElement(javax.xml.soap.SOAPElement element, ISOAPMessageContext context, boolean arrayType)
           
static javax.xml.soap.SOAPElement getSOAPElementFromRef(javax.xml.soap.SOAPElement param, ISOAPMessageContext context)
          if the Soap element have a ref attribute, the method research the SOAP element with the id key from the ref attribute return 1- the param if nothing ref exists in the soap element param 2- if the param is a ref on the other soap element, it returns the soap element referenced Exception: if the object researched from the ref attribute is not found an exception is throw
static boolean isValueNull(javax.xml.soap.SOAPElement element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLValueExtractor

public XMLValueExtractor()
Method Detail

getQNameForAttribute

public static QName getQNameForAttribute(javax.xml.soap.SOAPElement element,
                                         javax.xml.soap.Name name,
                                         ISOAPMessageContext context)
Deprecated.  


getQNameForElement

public static QName getQNameForElement(javax.xml.soap.SOAPElement element,
                                       ISOAPMessageContext context,
                                       boolean arrayType)

getQNameForElement

public static QName getQNameForElement(javax.xml.soap.SOAPElement element,
                                       ISOAPMessageContext context)

getQNameURIForElement

public static QNameURI getQNameURIForElement(javax.xml.soap.SOAPElement element,
                                             ISOAPMessageContext context)

getQNameURIForElement

public static QNameURI getQNameURIForElement(javax.xml.soap.SOAPElement element,
                                             ISOAPMessageContext context,
                                             boolean arrayType)

getNameForReference

public static javax.xml.soap.Name getNameForReference(javax.xml.soap.SOAPElement element,
                                                      ISOAPMessageContext context)
Extracts the name if the Element is containing a ref, if not return null;

getQNameForAttributeValue

public static QName getQNameForAttributeValue(java.lang.String value,
                                              ISOAPMessageContext context)
Deprecated.  


getQNameForAttributeValueFromConfig

public static QName getQNameForAttributeValueFromConfig(java.lang.String value,
                                                        java.lang.String namespace)
specific to soapconfig format has to now the exact value and namepace

getSOAPElementFromRef

public static javax.xml.soap.SOAPElement getSOAPElementFromRef(javax.xml.soap.SOAPElement param,
                                                               ISOAPMessageContext context)
                                                        throws PRTFaultInternalError
if the Soap element have a ref attribute, the method research the SOAP element with the id key from the ref attribute return 1- the param if nothing ref exists in the soap element param 2- if the param is a ref on the other soap element, it returns the soap element referenced Exception: if the object researched from the ref attribute is not found an exception is throw

isValueNull

public static boolean isValueNull(javax.xml.soap.SOAPElement element)

getAttributeValue

public static java.lang.String getAttributeValue(javax.xml.soap.SOAPElement element,
                                                 java.lang.String attribute_name)