1 package org.apache.axis2.soap.impl.llom; 2 3 import org.apache.axis2.om.OMElement; 4 import org.apache.axis2.om.OMXMLParserWrapper; 5 import org.apache.axis2.soap.SOAPFault; 6 import org.apache.axis2.soap.SOAPFaultReason; 7 import org.apache.axis2.soap.SOAPFaultText; 8 import org.apache.axis2.soap.impl.llom.soap12.SOAP12Constants; 9 import org.apache.axis2.soap.impl.llom.util.UtilProvider; 10 11 27 public abstract class SOAPFaultReasonImpl extends SOAPElement implements SOAPFaultReason{ 28 protected SOAPFaultText text; 29 30 36 public SOAPFaultReasonImpl(SOAPFault parent, OMXMLParserWrapper builder) { 37 super(parent, SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, builder); 38 } 39 40 43 public SOAPFaultReasonImpl(OMElement parent, boolean extractNamespaceFromParent) throws SOAPProcessingException { 44 super(parent, SOAP12Constants.SOAP_FAULT_REASON_LOCAL_NAME, extractNamespaceFromParent); 45 } 46 47 50 public void setSOAPText(SOAPFaultText soapFaultText) throws SOAPProcessingException { 51 UtilProvider.setNewElement(this, text, soapFaultText); 52 } 53 54 public SOAPFaultText getSOAPText() { 55 return (SOAPFaultText) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME); 56 } 57 } 58 | Popular Tags |