Index: Element.java
===================================================================
RCS file: /home/cvspublic/jdom/src/java/org/jdom/Element.java,v
retrieving revision 1.99
diff -u -r1.99 Element.java
--- Element.java 2001/08/29 21:45:28 1.99
+++ Element.java 2001/09/30 01:09:41
@@ -675,6 +675,9 @@
*
* @param name the name of the child
* @return text content for the named child, or null if none
+ * @deprecated Use
+ * {@link JDOMHelper#getChildText(Element, java.lang.String)}
+ * instead.
*/
public String getChildText(String name) {
Element child = getChild(name);
@@ -694,6 +697,9 @@
*
* @param name the name of the child
* @return trimmed text content for the named child, or null if none
+ * @deprecated Use
+ * {@link JDOMHelper#getChildTextTrim(Element, java.lang.String)}
+ *
instead.
*/
public String getChildTextTrim(String name) {
Element child = getChild(name);
@@ -713,6 +719,9 @@
* @param name the name of the child
* @param ns the namespace of the child
* @return text content for the named child, or null if none
+ * @deprecated Use
+ * {@link JDOMHelper#getChildText(Element, java.lang.String, Namespace)}
+ *
instead.
*/
public String getChildText(String name, Namespace ns) {
Element child = getChild(name, ns);
@@ -734,6 +743,9 @@
* @param name the name of the child
* @param ns the namespace of the child
* @return trimmed text content for the named child, or null if none
+ * @deprecated Use
+ * {@link JDOMHelper#getChildTextTrim(Element, java.lang.String, Namespace)}
+ *
instead.
*/
public String getChildTextTrim(String name, Namespace ns) {
Element child = getChild(name, ns);
@@ -1749,23 +1761,23 @@
/**
*
- * This removes the supplied Attribute should it exist. - *
- * - * @param attribute Reference to the attribute to be removed. - * @return whether the attribute was removed - */ - public boolean removeAttribute(Attribute attribute) { - if (attributes == null || - (attribute == null) || (attribute.getParent() != this)) { - return false; - } - - return attributes.remove(attribute); - } - - /** - *+ * This removes the supplied Attribute should it exist. + *
+ * + * @param attribute Reference to the attribute to be removed. + * @return whether the attribute was removed + */ + public boolean removeAttribute(Attribute attribute) { + if (attributes == null || + (attribute == null) || (attribute.getParent() != this)) { + return false; + } + + return attributes.remove(attribute); + } + + /** + *
* This returns a String
representation of the
* Element
, suitable for debugging. If the XML
* representation of the Element
is desired,