1 package org.apache.axis2.soap.impl.llom; 2 3 import org.apache.axis2.om.OMXMLParserWrapper; 4 import org.apache.axis2.soap.SOAPFault; 5 import org.apache.axis2.soap.SOAPFaultCode; 6 import org.apache.axis2.soap.SOAPFaultSubCode; 7 import org.apache.axis2.soap.SOAPFaultValue; 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 SOAPFaultCodeImpl extends SOAPElement implements SOAPFaultCode { 28 29 30 38 public SOAPFaultCodeImpl(SOAPFault parent, OMXMLParserWrapper builder) { 39 super(parent, SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, builder); 40 } 41 42 46 public SOAPFaultCodeImpl(SOAPFault parent, boolean extractNamespaceFromParent) throws SOAPProcessingException { 47 super(parent, SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME, extractNamespaceFromParent); 48 } 49 50 53 public void setValue(SOAPFaultValue value) throws SOAPProcessingException { 54 UtilProvider.setNewElement(this, value, value); 55 } 56 57 public SOAPFaultValue getValue() { 58 return (SOAPFaultValue) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_VALUE_LOCAL_NAME); 59 } 60 61 public void setSubCode(SOAPFaultSubCode value) throws SOAPProcessingException { 62 UtilProvider.setNewElement(this, getSubCode(), value); 63 } 64 65 public SOAPFaultSubCode getSubCode() { 66 return (SOAPFaultSubCode) UtilProvider.getChildWithName(this, SOAP12Constants.SOAP_FAULT_SUB_CODE_LOCAL_NAME); 67 } 68 } 69 | Popular Tags |