1 9 10 package org.ozoneDB.xml.dom4j.o3impl; 11 12 import org.dom4j.Element; 13 14 21 public class DefaultCDATA extends FlyweightCDATA { 22 23 24 private Element parent; 25 26 28 public DefaultCDATA(String text) { 29 super(text); 30 } 31 32 35 public DefaultCDATA(Element parent, String text) { 36 super(text); 37 this.parent = parent; 38 } 39 40 public void setText(String text) { 41 this.text = text; 42 } 43 44 public Element getParent() { 45 return parent; 46 } 47 48 public void setParent(Element parent) { 49 this.parent = parent; 50 } 51 52 public boolean supportsParent() { 53 return true; 54 } 55 56 public boolean isReadOnly() { 57 return false; 58 } 59 } 60 61 62 106 | Popular Tags |