1 18 19 package org.apache.batik.dom; 20 21 import org.w3c.dom.DocumentType ; 22 import org.w3c.dom.NamedNodeMap ; 23 import org.w3c.dom.Node ; 24 25 public class GenericDocumentType extends AbstractChildNode 26 implements DocumentType { 27 28 protected String qualifiedName; 29 protected String publicId; 30 protected String systemId; 31 32 public GenericDocumentType(String qualifiedName, 33 String publicId, 34 String systemId) { 35 this.qualifiedName = qualifiedName; 36 this.publicId = publicId; 37 this.systemId = systemId; 38 } 39 40 44 public String getNodeName() { return qualifiedName; } 45 46 public short getNodeType() { return DOCUMENT_TYPE_NODE; } 47 48 public boolean isReadonly() { return true; } 49 public void setReadonly(boolean ro) {} 50 51 55 public String getName() { return null; } 56 57 61 public NamedNodeMap getEntities() { 62 return null; 63 } 64 65 69 public NamedNodeMap getNotations() { 70 return null; 71 } 72 73 77 public String getPublicId() { return publicId; } 78 79 83 public String getSystemId() { return systemId; } 84 85 89 public String getInternalSubset() { return null; } 90 91 92 protected Node newNode() { 93 return new GenericDocumentType(qualifiedName, publicId, systemId); } 94 } | Popular Tags |