/** * @param contentID * @param parent * @param builder Used when the builder is encountered with a XOP:Include tag Stores a * reference to the builder and the content-id. Supports deffered parsing of * MIME messages */ public TextImpl(String contentID, OMContainer parent, OMXMLParserWrapper builder, OMFactory factory) { super((DocumentImpl) ((ParentNode) parent).getOwnerDocument(), factory); this.contentID = contentID; this.optimize = true; this.isBinary = true; this.done = true; this.builder = builder; this.ns = XOP_NS; }
public ElementImpl(ParentNode parentNode, String tagName, NamespaceImpl ns, OMFactory factory) { this((DocumentImpl) parentNode.getOwnerDocument(), tagName, ns, factory); parentNode.addChild(this); this.done = true; }
public ElementImpl(ParentNode parentNode, String tagName, NamespaceImpl ns, OMXMLParserWrapper builder, OMFactory factory) { this(tagName, ns, builder, factory); if (parentNode != null) { this.ownerNode = (DocumentImpl) parentNode.getOwnerDocument(); this.isOwned(true); parentNode.addChild(this); } }
public OMComment createOMComment(OMContainer parent, String content) { DocumentImpl doc; if (parent instanceof DocumentImpl) { doc = (DocumentImpl) parent; } else { doc = (DocumentImpl) ((ParentNode) parent).getOwnerDocument(); } CommentImpl comment = new CommentImpl(doc, content, this); parent.addChild(comment); return comment; }
.getOwnerDocument(); if (isReadOnly()) { String msg = DOMMessageFormatter.formatMessage(
super((DocumentImpl) ((ParentNode) parent).getOwnerDocument(), factory); this.done = true;
msg); if (attribute.getOwnerDocument() != ownerNode.getOwnerDocument()) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null); attr.ownerNode = (DocumentImpl) this.ownerNode.getOwnerDocument(); attr.isOwned(true); // To indicate that this attr belong to an element nodes.setElementAt(attr, i); previous.ownerNode = (DocumentImpl) this.ownerNode .getOwnerDocument(); previous.isOwned(false);
msg); if (attribute.getOwnerDocument() != ownerNode.getOwnerDocument()) { String msg = DOMMessageFormatter.formatMessage( DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null);
.getDataHandler(), isOptimize); } else if (importedText.isCharacters()) { newText = new TextImpl((DocumentImpl) this.getOwnerDocument(), importedText.getTextCharacters(), this.factory); } else { newText = new TextImpl((DocumentImpl) this.getOwnerDocument(), importedText.getText(), this.factory); doc = (DocumentImpl) this; } else { doc = (DocumentImpl) ((ParentNode) this).getOwnerDocument();