1 56 57 package org.jdom; 58 59 import java.util.*; 60 61 72 public interface JDOMFactory { 73 74 76 86 public Attribute attribute(String name, String value, Namespace namespace); 87 88 98 public Attribute attribute(String name, String value, 99 int type, Namespace namespace); 100 101 114 public Attribute attribute(String name, String value); 115 116 130 public Attribute attribute(String name, String value, int type); 131 132 134 139 public CDATA cdata(String str); 140 141 143 148 public Text text(String str); 149 150 152 157 public Comment comment(String text); 158 159 161 173 public DocType docType(String elementName, 174 String publicID, String systemID); 175 176 186 public DocType docType(String elementName, String systemID); 187 188 195 public DocType docType(String elementName); 196 197 199 208 public Document document(Element rootElement, DocType docType); 209 210 220 public Document document(Element rootElement, DocType docType, String baseURI); 221 222 230 public Document document(Element rootElement); 231 232 234 242 public Element element(String name, Namespace namespace); 243 244 250 public Element element(String name); 251 252 263 public Element element(String name, String uri); 264 265 275 public Element element(String name, String prefix, String uri); 276 277 279 287 public ProcessingInstruction processingInstruction(String target, 288 Map data); 289 290 297 public ProcessingInstruction processingInstruction(String target, 298 String data); 299 300 302 308 public EntityRef entityRef(String name); 309 310 318 public EntityRef entityRef(String name, String publicID, String systemID); 319 320 327 public EntityRef entityRef(String name, String systemID); 328 329 333 public void addContent(Parent parent, Content content); 334 335 public void setAttribute(Element element, Attribute a); 336 337 public void addNamespaceDeclaration(Element element, Namespace additional); 338 } 339 | Popular Tags |