Home | History | Annotate | Download | only in dom

Lines Matching refs:nextSibling

100      * <p>In practice, <code>node</code> and <code>nextSibling</code> should be
106 * <p>Use <code>nextSibling</code> to specify the child node
108 * If <code>nextSibling</code> is not a sibling of <code>node</code>,
110 * If <code>node</code> is <code>null</code> and <code>nextSibling</code> is not <code>null</code>,
112 * If <code>nextSibling</code> is <code>null</code>,
119 * @param nextSibling The child node where the result nodes should be inserted before.
121 * @throws IllegalArgumentException If <code>nextSibling</code> is not a sibling of <code>node</code>.
122 * @throws IllegalArgumentException If <code>node</code> is <code>null</code> and <code>nextSibling</code> is not <code>null</code>.
126 public DOMResult(Node node, Node nextSibling) {
129 if (nextSibling != null) {
132 throw new IllegalArgumentException("Cannot create a DOMResult when the nextSibling is contained by the \"null\" node.");
135 // nextSibling contained by node?
136 if ((node.compareDocumentPosition(nextSibling)&Node.DOCUMENT_POSITION_CONTAINED_BY)==0) {
137 throw new IllegalArgumentException("Cannot create a DOMResult when the nextSibling is not contained by the node.");
142 setNextSibling(nextSibling);
150 * <p>In practice, <code>node</code> and <code>nextSibling</code> should be
156 * <p>Use <code>nextSibling</code> to specify the child node
158 * If <code>nextSibling</code> is not a sibling of <code>node</code>,
160 * If <code>node</code> is <code>null</code> and <code>nextSibling</code> is not <code>null</code>,
162 * If <code>nextSibling</code> is <code>null</code>,
167 * @param nextSibling The child node where the result nodes should be inserted before.
170 * @throws IllegalArgumentException If <code>nextSibling</code> is not a sibling of <code>node</code>.
171 * @throws IllegalArgumentException If <code>node</code> is <code>null</code> and <code>nextSibling</code> is not <code>null</code>.
175 public DOMResult(Node node, Node nextSibling, String systemId) {
178 if (nextSibling != null) {
181 throw new IllegalArgumentException("Cannot create a DOMResult when the nextSibling is contained by the \"null\" node.");
184 // nextSibling contained by node?
185 if ((node.compareDocumentPosition(nextSibling)&Node.DOCUMENT_POSITION_CONTAINED_BY)==0) {
186 throw new IllegalArgumentException("Cannot create a DOMResult when the nextSibling is not contained by the node.");
191 setNextSibling(nextSibling);
204 * <p>An <code>IllegalStateException</code> is thrown if <code>nextSibling</code> is not <code>null</code> and
205 * <code>node</code> is not a parent of <code>nextSibling</code>.
207 * <code>nextSibling</code> is not <code>null</code>.</p>
211 * @throws IllegalStateException If <code>nextSibling</code> is not <code>null</code> and
212 * <code>nextSibling</code> is not a child of <code>node</code>.
214 * <code>nextSibling</code> is not <code>null</code>.
218 if (nextSibling != null) {
221 throw new IllegalStateException("Cannot create a DOMResult when the nextSibling is contained by the \"null\" node.");
224 // nextSibling contained by node?
225 if ((node.compareDocumentPosition(nextSibling)&Node.DOCUMENT_POSITION_CONTAINED_BY)==0) {
226 throw new IllegalArgumentException("Cannot create a DOMResult when the nextSibling is not contained by the node.");
239 * {@link #DOMResult(Node node, Node nextSibling)},
240 * {@link #DOMResult(Node node, Node nextSibling, String systemId)} or
254 * <p>Use <code>nextSibling</code> to specify the child node
256 * If <code>nextSibling</code> is not a descendant of <code>node</code>,
258 * If <code>node</code> is <code>null</code> and <code>nextSibling</code> is not <code>null</code>,
260 * If <code>nextSibling</code> is <code>null</code>,
264 * @param nextSibling The child node before which the result nodes will be inserted.
266 * @throws IllegalArgumentException If <code>nextSibling</code> is not a descendant of <code>node</code>.
267 * @throws IllegalStateException If <code>node</code> is <code>null</code> and <code>nextSibling</code> is not <code>null</code>.
271 public void setNextSibling(Node nextSibling) {
274 if (nextSibling != null) {
277 throw new IllegalStateException("Cannot create a DOMResult when the nextSibling is contained by the \"null\" node.");
280 // nextSibling contained by node?
281 if ((node.compareDocumentPosition(nextSibling)&Node.DOCUMENT_POSITION_CONTAINED_BY)==0) {
282 throw new IllegalArgumentException("Cannot create a DOMResult when the nextSibling is not contained by the node.");
286 this.nextSibling = nextSibling;
293 * {@link #DOMResult(Node node, Node nextSibling)},
294 * {@link #DOMResult(Node node, Node nextSibling, String systemId)} or
295 * {@link #setNextSibling(Node nextSibling)},
303 return nextSibling;
320 * {@link #DOMResult(Node node, Node nextSibling, String systemId)} or
344 private Node nextSibling = null;