/** * <b>DOM</b>: Implements {@link * org.w3c.dom.ProcessingInstruction#setData(String)}. */ public void setData(String data) throws DOMException { if (isReadonly()) { throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] {(int) getNodeType(), getNodeName() }); } String val = this.data; this.data = data; // Mutation event fireDOMCharacterDataModifiedEvent(val, this.data); if (getParentNode() != null) { ((AbstractParentNode)getParentNode()). fireDOMSubtreeModifiedEvent(); } }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getNodeValue()}. * @return {@link #getData()}. */ public String getNodeValue() throws DOMException { return getData(); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getTextContent()}. */ public String getTextContent() { return getNodeValue(); }
/** * Copy the fields of the current node into the given node. * @param n a node of the type of this. */ protected Node copyInto(Node n) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.copyInto(n); p.setTarget(getTarget()); return p; }
/** * Deeply copy the fields of the current node into the given node. * @param n a node of the type of this. */ protected Node deepCopyInto(Node n) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.deepCopyInto(n); p.setTarget(getTarget()); return p; }
/** * Exports this node to the given document. */ protected Node export(Node n, AbstractDocument d) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.export(n, d); p.setTarget(getTarget()); return p; }
/** * Deeply exports this node to the given document. */ protected Node deepExport(Node n, AbstractDocument d) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.deepExport(n, d); p.setTarget(getTarget()); return p; }
/** * Copy the fields of the current node into the given node. * @param n a node of the type of this. */ protected Node copyInto(Node n) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.copyInto(n); p.setTarget(getTarget()); return p; }
/** * Deeply copy the fields of the current node into the given node. * @param n a node of the type of this. */ protected Node deepCopyInto(Node n) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.deepCopyInto(n); p.setTarget(getTarget()); return p; }
/** * Exports this node to the given document. */ protected Node export(Node n, AbstractDocument d) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.export(n, d); p.setTarget(getTarget()); return p; }
/** * Deeply exports this node to the given document. */ protected Node deepExport(Node n, AbstractDocument d) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.deepExport(n, d); p.setTarget(getTarget()); return p; }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.ProcessingInstruction#setData(String)}. */ public void setData(String data) throws DOMException { if (isReadonly()) { throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] {(int) getNodeType(), getNodeName() }); } String val = this.data; this.data = data; // Mutation event fireDOMCharacterDataModifiedEvent(val, this.data); if (getParentNode() != null) { ((AbstractParentNode)getParentNode()). fireDOMSubtreeModifiedEvent(); } }
/** * Copy the fields of the current node into the given node. * @param n a node of the type of this. */ protected Node copyInto(Node n) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.copyInto(n); p.setTarget(getTarget()); return p; }
/** * Deeply copy the fields of the current node into the given node. * @param n a node of the type of this. */ protected Node deepCopyInto(Node n) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.deepCopyInto(n); p.setTarget(getTarget()); return p; }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getNodeValue()}. * @return {@link #getData()}. */ public String getNodeValue() throws DOMException { return getData(); }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getTextContent()}. */ public String getTextContent() { return getNodeValue(); }
/** * Exports this node to the given document. */ protected Node export(Node n, AbstractDocument d) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.export(n, d); p.setTarget(getTarget()); return p; }
/** * Deeply exports this node to the given document. */ protected Node deepExport(Node n, AbstractDocument d) { GenericProcessingInstruction p; p = (GenericProcessingInstruction)super.deepExport(n, d); p.setTarget(getTarget()); return p; }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.ProcessingInstruction#setData(String)}. */ public void setData(String data) throws DOMException { if (isReadonly()) { throw createDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "readonly.node", new Object[] { new Integer(getNodeType()), getNodeName() }); } String val = this.data; this.data = data; // Mutation event fireDOMCharacterDataModifiedEvent(val, this.data); if (getParentNode() != null) { ((AbstractParentNode)getParentNode()). fireDOMSubtreeModifiedEvent(); } }
/** * <b>DOM</b>: Implements {@link org.w3c.dom.Node#getNodeValue()}. * @return {@link #getData()}. */ public String getNodeValue() throws DOMException { return getData(); }