1 package org.apache.axis2.soap.impl.llom.soap12; 2 3 import org.apache.axis2.om.OMElement; 4 import org.apache.axis2.om.OMXMLParserWrapper; 5 import org.apache.axis2.soap.impl.llom.SOAPFaultValueImpl; 6 import org.apache.axis2.soap.impl.llom.SOAPProcessingException; 7 8 25 26 public class SOAP12FaultValueImpl extends SOAPFaultValueImpl{ 27 public SOAP12FaultValueImpl(OMElement parent) throws SOAPProcessingException { 28 super(parent); 29 } 30 31 public SOAP12FaultValueImpl(OMElement parent, OMXMLParserWrapper builder) { 32 super(parent, builder); 33 } 34 35 protected void checkParent(OMElement parent) throws SOAPProcessingException { 36 if (!((parent instanceof SOAP12FaultSubCodeImpl)|| (parent instanceof SOAP12FaultCodeImpl))) { 37 throw new SOAPProcessingException("Expecting SOAP 1.2 implementation of SOAP FaultSubCode or SOAP FaultCode as the parent. But received some other implementation"); 38 } 39 } 40 } 41 | Popular Tags |