public ElementImpl(OMFactory factory) { super(factory); this.ownerNode = ((OMDOMFactory) factory).getDocument(); }
public SOAPHeaderBlockImpl(String localName, OMNamespace ns, SOAPFactory factory) throws SOAPProcessingException { super(((OMDOMFactory) factory).getDocument(), localName, (NamespaceImpl) ns, factory); this.setNamespace(ns); }
public OMAttribute createOMAttribute(String localName, OMNamespace ns, String value) { return new AttrImpl(this.getDocument(), localName, ns, value, this); }
public void applyPolicy(AxisDescription axisDescription, Element policy) { try { OMElement policyElement = (OMElement) new OMDOMFactory().getDocument().importNode(policy, true); axisDescription.applyPolicy(PolicyEngine.getPolicy(policyElement)); } catch (Exception e) { // TODO Handle exception properly throw new AssertionError(e); } }
DocumentElement documentElement = (DocumentElement)builder.getDocumentElement(); documentElement.detachFromDocument(); return ((ParsedContent)documentElement).setOwnerDocument(factory.getDocument()); } catch (Throwable th) { Throwable cause = th.getCause(); DocumentElement documentElement = (DocumentElement)builder.getDocumentElement(); documentElement.detachFromDocument(); return ((ParsedContent)documentElement).setOwnerDocument(factory.getDocument()); } catch (Throwable th) { throw new IOException("Error reading message. " + th.getMessage());
OMElement receivedKeyInfoElem = (OMElement) new OMDOMFactory().getDocument().importNode(keyInfo, true);
OMElement receivedKeyInfoElem = (OMElement) new OMDOMFactory().getDocument().importNode(keyInfo, true);
rsaKey = val.getRSAKeyValue(); elem = rsaKey.getDOM(); omElem = (OMElement) new OMDOMFactory().getDocument().importNode(elem, true); modElem = (Element) omElem.getFirstChildWithName(Modulus.DEFAULT_ELEMENT_NAME); expElem = (Element) omElem.getFirstChildWithName(Exponent.DEFAULT_ELEMENT_NAME);
Document doc = omDomFac.getDocument();