1 18 package org.apache.batik.dom; 19 20 import org.w3c.dom.Node ; 21 22 28 public class GenericComment extends AbstractComment { 29 32 protected boolean readonly; 33 34 37 public GenericComment() { 38 } 39 40 43 public GenericComment(String value, AbstractDocument owner) { 44 ownerDocument = owner; 45 setNodeValue(value); 46 } 47 48 51 public boolean isReadonly() { 52 return readonly; 53 } 54 55 58 public void setReadonly(boolean v) { 59 readonly = v; 60 } 61 62 65 protected Node newNode() { 66 return new GenericComment(); 67 } 68 } 69 | Popular Tags |