1 18 package org.apache.batik.dom; 19 20 import org.w3c.dom.Node ; 21 22 28 public class GenericEntity extends AbstractEntity { 29 32 protected boolean readonly; 33 34 37 protected GenericEntity() { 38 } 39 40 43 public GenericEntity(String name, 44 String pubId, 45 String sysId, 46 AbstractDocument owner) { 47 ownerDocument = owner; 48 setNodeName(name); 49 setPublicId(pubId); 50 setSystemId(sysId); 51 } 52 53 56 public boolean isReadonly() { 57 return readonly; 58 } 59 60 63 public void setReadonly(boolean v) { 64 readonly = v; 65 } 66 67 70 protected Node newNode() { 71 return new GenericEntity(); 72 } 73 } 74 | Popular Tags |