1 package org.apache.axis2.soap.impl.llom; 2 3 import org.apache.axis2.om.OMElement; 4 import org.apache.axis2.om.OMNamespace; 5 import org.apache.axis2.om.OMXMLParserWrapper; 6 import org.apache.axis2.om.impl.llom.OMElementImpl; 7 8 28 29 public abstract class SOAPElement extends OMElementImpl { 30 31 32 36 protected SOAPElement(OMElement parent, String localName, boolean extractNamespaceFromParent) throws SOAPProcessingException { 37 super(parent); 38 if (parent == null) { 39 throw new SOAPProcessingException(" Can not create " + localName + " element without a parent !!"); 40 } 41 checkParent(parent); 42 43 if (extractNamespaceFromParent) { 44 this.ns = parent.getNamespace(); 45 } 46 this.localName = localName; 47 } 48 49 50 protected SOAPElement(OMElement parent, String localName, OMXMLParserWrapper builder) { 51 super(localName, null, parent, builder); 52 } 53 54 63 protected SOAPElement(String localName, OMNamespace ns) { 64 super(localName, ns); 65 66 } 67 68 71 protected abstract void checkParent(OMElement parent) throws SOAPProcessingException; 72 73 } 74 | Popular Tags |