diff options
Diffstat (limited to 'libjava/classpath/gnu/xml/dom/DomText.java')
-rw-r--r-- | libjava/classpath/gnu/xml/dom/DomText.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libjava/classpath/gnu/xml/dom/DomText.java b/libjava/classpath/gnu/xml/dom/DomText.java index 167eba3..b74c5b4 100644 --- a/libjava/classpath/gnu/xml/dom/DomText.java +++ b/libjava/classpath/gnu/xml/dom/DomText.java @@ -1,4 +1,4 @@ -/* DomText.java -- +/* DomText.java -- Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -45,24 +45,24 @@ import org.w3c.dom.Text; /** * <p> "Text" implementation. </p> * - * @author David Brownell + * @author David Brownell * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a> */ public class DomText extends DomCharacterData implements Text { - + // NOTE: deleted unused per-instance "isIgnorable" // support to reclaim its space. - + /** * Constructs a text node associated with the specified * document and holding the specified data. * * <p>This constructor should only be invoked by a Document object * as part of its createTextNode functionality, or through a subclass - * which is similarly used in a "Sub-DOM" style layer. + * which is similarly used in a "Sub-DOM" style layer. */ protected DomText(DomDocument owner, String value) { @@ -112,7 +112,7 @@ public class DomText String before = text.substring(0, offset); String after = text.substring(offset); Text next; - + if (getNodeType() == TEXT_NODE) { next = owner.createTextNode(after); @@ -121,7 +121,7 @@ public class DomText { next = owner.createCDATASection(after); } - + if (this.next != null) { parent.insertBefore(next, this.next); @@ -132,16 +132,16 @@ public class DomText } setNodeValue(before); return next; - + } catch (IndexOutOfBoundsException x) { throw new DomDOMException(DOMException.INDEX_SIZE_ERR); } } - + // DOM Level 3 - + public boolean isElementContentWhitespace() { if (parent != null) @@ -192,7 +192,7 @@ public class DomText { setNodeValue(content); } - + DomNode ref = this; DomNode ctx; for (ctx = previous; ctx != null && @@ -218,5 +218,5 @@ public class DomText } return (isEmpty) ? null : this; } - + } |