protected Document newDocument() { return DOMUtils.newDocument(); }
public Element getHeader() { if ( header == null ) header = DOMUtils.newDocument().getDocumentElement(); return header; }
public Element getData() { if (data == null) data = DOMUtils.newDocument().getDocumentElement(); return data; }
public WSAEndpoint(WSAEndpoint prototype) { _eprElmt = (Element)DOMUtils.newDocument().importNode(prototype._eprElmt, true); }
public static Document getDocument(Node contextNode) { return (contextNode == null) ? DOMUtils.newDocument() : contextNode.getOwnerDocument(); }
public Document toXML() { // Wrapping Document doc = DOMUtils.newDocument(); Element serviceRef = doc.createElementNS(Namespaces.WSBPEL2_0_FINAL_SERVREF, "service-ref"); doc.appendChild(serviceRef); serviceRef.appendChild(doc.importNode(_serviceElmt, true)); return doc; }
public EndpointReference getInitialEndpointReference() { final Document doc = DOMUtils.newDocument(); Element serviceref = doc.createElementNS(EndpointReference.SERVICE_REF_QNAME.getNamespaceURI(), EndpointReference.SERVICE_REF_QNAME.getLocalPart()); doc.appendChild(serviceref); return new EndpointReference() { public Document toXML() { return doc; } }; } }
public Document toXML() { // Wrapping Document doc = DOMUtils.newDocument(); Element serviceRef = doc.createElementNS(Namespaces.WSBPEL2_0_FINAL_SERVREF, "service-ref"); doc.appendChild(serviceRef); serviceRef.appendChild(doc.importNode(_serviceElmt, true)); return _serviceElmt.getOwnerDocument(); }
public Document toXML() { Document doc = DOMUtils.newDocument(); Element serviceRef = doc.createElementNS(SERVICE_REF_QNAME.getNamespaceURI(), SERVICE_REF_QNAME.getLocalPart()); doc.appendChild(serviceRef); Node urlNode = doc.createTextNode(_url); serviceRef.appendChild(urlNode); return doc; }
public Document toXML() { // Wrapping Document doc = DOMUtils.newDocument(); Element serviceRef = doc.createElementNS(SERVICE_REF_QNAME.getNamespaceURI(), SERVICE_REF_QNAME.getLocalPart()); doc.appendChild(serviceRef); serviceRef.appendChild(doc.importNode(_eprElmt, true)); return _eprElmt.getOwnerDocument(); }
/** * @see XmlDataDAO#get() */ public Node get() { if (_data == null) return null; Document doc = DOMUtils.newDocument(); Node copy = doc.importNode(_data, true); if (_data instanceof Element) doc.appendChild(copy); else { Element wrapper = doc.createElement("wrapper"); wrapper.appendChild(copy); } return copy; }
public EndpointReference activateMyRoleEndpoint(QName processId, Endpoint myRoleEndpoint) { final Document doc = DOMUtils.newDocument(); Element serviceref = doc.createElementNS(EndpointReference.SERVICE_REF_QNAME.getNamespaceURI(), EndpointReference.SERVICE_REF_QNAME.getLocalPart()); serviceref.setNodeValue(myRoleEndpoint.serviceName +":" +myRoleEndpoint.portName); doc.appendChild(serviceref); return new EndpointReference() { public Document toXML() { return doc; } }; }
public static Document parse(XMLStreamReader reader) throws XMLStreamException { Document doc = newDocument(); parse(reader, doc, doc); return doc; }
public void setHeaderPart(String name, Element content) { Element header = _dao.getHeader(); if (header == null) { Document doc = DOMUtils.newDocument(); header = doc.createElement("header"); doc.appendChild(header); } Element part = header.getOwnerDocument().createElement(name); header.appendChild(part); part.appendChild(header.getOwnerDocument().importNode(content, true)); _dao.setHeader(header); }
public static Element toDOM(OMElement element) { return toDOM(element, DOMUtils.newDocument()); }
public void setHeaderPart(String name, String content) { Element header = _dao.getHeader(); if (header == null) { Document doc = DOMUtils.newDocument(); header = doc.createElement("header"); doc.appendChild(header); } Element part = header.getOwnerDocument().createElement(name); header.appendChild(part); part.setTextContent(content); _dao.setHeader(header); }
public void setPart(String partName, Element content) { Element message = getMessage(); if (message == null) { Document doc = DOMUtils.newDocument(); message = doc.createElement("message"); doc.appendChild(message); } message.appendChild(message.getOwnerDocument().importNode(content, true)); setMessage(message); }
public Document toXML() { Document doc = DOMUtils.newDocument(); Element root = doc.createElementNS(SERVICE_REF_QNAME.getNamespaceURI(),SERVICE_REF_QNAME.getLocalPart()); try { DocumentFragment fragment = getServiceEndpoint().getAsReference(_type); if (fragment != null) { root.appendChild(doc.importNode(fragment,true)); } } catch (Throwable t) { } doc.appendChild(root); return doc; }
private OAssign.RValue compileLiteral(LiteralVal from) { Element literal = from.getLiteral(); Document newDoc = DOMUtils.newDocument(); Element clone = (Element) newDoc.importNode(literal, true); newDoc.appendChild(clone); return new OAssign.Literal(_context.getOProcess(), newDoc); }
public EndpointReference convertEndpoint(QName eprType, Element epr) { Document doc = DOMUtils.newDocument(); DocumentFragment fragment = doc.createDocumentFragment(); NodeList children = epr.getChildNodes(); for (int i = 0 ; i < children.getLength(); ++i) fragment.appendChild(doc.importNode(children.item(i), true)); ServiceEndpoint se = _ode.getContext().resolveEndpointReference(fragment); if (se == null) return null; return new JbiEndpointReference(se, eprType); }