1 21 22 package nu.xom.samples; 23 24 import nu.xom.Attribute; 25 import nu.xom.Element; 26 import nu.xom.NodeFactory; 27 import nu.xom.Nodes; 28 38 public class MinimalNodeFactory extends NodeFactory { 39 40 private Nodes empty = new Nodes(); 41 42 public Nodes makeComment(String data) { 43 return empty; 44 } 45 46 public Nodes makeText(String data) { 47 return empty; 48 } 49 50 public Element makeRootElement(String name, String namespace) { 51 return new Element(name, namespace); 52 } 53 54 public Element startMakingElement(String name, String namespace) { 55 return null; 56 } 57 58 public Nodes makeAttribute(String name, String namespace, 59 String value, Attribute.Type type) { 60 return empty; 61 } 62 63 public Nodes makeDocType(String rootElementName, 64 String publicID, String systemID) { 65 return empty; 66 } 67 68 public Nodes makeProcessingInstruction( 69 String target, String data) { 70 return empty; 71 } 72 73 } 74 | Popular Tags |