[jdom-commits] CVS Update: jdom/src/java/org/jdom

Jason Hunter jhunter at servlets.com
Thu Sep 2 23:31:27 PDT 2004


****************************************
Date:   Thu Sep  2, 2004 @23:31:27 PDT
Author: 

Update of /home/cvs/jdom/src/java/org/jdom
In directory servlets:/tmp/cvs-serv2240

Modified Files:
Element.java
Log Message:
Added an Element getParentElement() method which has the same behavior
as getParent() used to. This should give people an easier upgrade path.

/bin /boot /cvs /dev /etc /home /install /lib /log /lost+found /mnt /nfs /opt /proc /root /sbin /tmp /usr /var /vmware
CVS <p>
CVS A convenience method that returns any parent element for this element,
CVS or null if the element is unattached or is a root element. This was the
CVS original behavior of getParent() in JDOM Beta 9 which began returning
CVS Parent in Beta 10. This method provides a convenient upgrade path for
CVS JDOM Beta 10 and 1.0 users.
CVS </p>
CVS
CVS @return the containing Element or null if unattached or a root element
CVS/
public Element getParentElement() {
Parent parent = getParent();
return (Element) ((parent instanceof Element) ? parent : null);
}

-jh-

===================================================================
File: no file Element.java		Status: Needs Checkout

   Working revision:	1.151	Fri Sep  3 06:31:27 2004
   Repository revision:	1.151	/home/cvs/jdom/src/java/org/jdom/Element.java,v

   Existing Tags:
	BEFORE_UNCHECKED         	(revision: 1.148)
	jdom_1_0_b10             	(revision: 1.145)
	jdom_1_0_b10_rc1         	(revision: 1.143)
	after_rolf               	(revision: 1.140)
	before_rolf              	(revision: 1.139)
	jdom_1_0_b9              	(revision: 1.130)
	jdom_1_0_b8              	(revision: 1.115)
	jdom_prefilter           	(revision: 1.102)
	jdom_1_0_b7              	(revision: 1.96)
	jdom_1_0_b6              	(revision: 1.52)
	start                    	(revision: 1.1.1.1)
	jdom                     	(branch: 1.1.1)



More information about the jdom-commits mailing list