1 7 8 package org.dom4j; 9 10 import java.util.Iterator ; 11 import java.util.List ; 12 13 24 public interface Branch extends Node { 25 37 Node node(int index) throws IndexOutOfBoundsException ; 38 39 49 int indexOf(Node node); 50 51 57 int nodeCount(); 58 59 69 Element elementByID(String elementID); 70 71 82 List content(); 83 84 89 Iterator nodeIterator(); 90 91 98 void setContent(List content); 99 100 108 void appendContent(Branch branch); 109 110 114 void clearContent(); 115 116 125 List processingInstructions(); 126 127 139 List processingInstructions(String target); 140 141 149 ProcessingInstruction processingInstruction(String target); 150 151 157 void setProcessingInstructions(List listOfPIs); 158 159 168 Element addElement(String name); 169 170 179 Element addElement(QName qname); 180 181 192 Element addElement(String qualifiedName, String namespaceURI); 193 194 202 boolean removeProcessingInstruction(String target); 203 204 213 void add(Node node); 214 215 223 void add(Comment comment); 224 225 233 void add(Element element); 234 235 243 void add(ProcessingInstruction pi); 244 245 257 boolean remove(Node node); 258 259 269 boolean remove(Comment comment); 270 271 281 boolean remove(Element element); 282 283 294 boolean remove(ProcessingInstruction pi); 295 296 313 void normalize(); 314 } 315 316 352 | Popular Tags |