1 7 8 package org.dom4j.tree; 9 10 import org.dom4j.Element; 11 12 22 public class DefaultCDATA extends FlyweightCDATA { 23 24 private Element parent; 25 26 32 public DefaultCDATA(String text) { 33 super(text); 34 } 35 36 44 public DefaultCDATA(Element parent, String text) { 45 super(text); 46 this.parent = parent; 47 } 48 49 public void setText(String text) { 50 this.text = text; 51 } 52 53 public Element getParent() { 54 return parent; 55 } 56 57 public void setParent(Element parent) { 58 this.parent = parent; 59 } 60 61 public boolean supportsParent() { 62 return true; 63 } 64 65 public boolean isReadOnly() { 66 return false; 67 } 68 } 69 70 106 | Popular Tags |