public void changePropStatStatus(String oldStatus, String newStatus, String responseDescription) {
    """
	Changes all of this response's propstats with the given old status
	to have the given new status. In addition, their response
	descriptions are changed to be the given response description or
	removed if the given response description is <code>null</code>. The
	old status and new status must not be <code>null</null>. This
	response must not be in the "status" form.
	
	@param oldStatus           the old status of the propstat's that are
	changed
	@param newStatus           the new status of the propstat's that are
	changed
	@param responseDescription the new response description of the
	propstat's that are changed, or
	<code>null</null>
    """
        Assert.isNotNull(oldStatus);
        Assert.isNotNull(newStatus);
        Element firstHref = getFirstChild(root, "href"); //$NON-NLS-1$
        Assert.isTrue(firstHref == null || getNextSibling(firstHref, new String[] {"href", "status"}) == null); //$NON-NLS-1$ //$NON-NLS-2$
        Element propstat = getFirstChild(root, "propstat"); //$NON-NLS-1$
        while (propstat != null) {
            String status = getChildText(propstat, "status", true); //$NON-NLS-1$
            if (oldStatus.equals(status)) {
                setChild(propstat, "status", newStatus, PropStat.childNames, true); //$NON-NLS-1$
                if (responseDescription == null) {
                    Element responsedescription = getLastChild(propstat, "responsedescription"); //$NON-NLS-1$
                    if (responsedescription != null)
                        propstat.removeChild(responsedescription);
                } else
                    setChild(propstat, "responsedescription", //$NON-NLS-1$
                            responseDescription, PropStat.childNames, false);
            }
            propstat = getTwin(propstat, true);
        }
    }
public void changePropStatStatus(String oldStatus, String newStatus, String responseDescription) {
        Assert.isNotNull(oldStatus);
        Assert.isNotNull(newStatus);
        Element firstHref = getFirstChild(root, "href"); //$NON-NLS-1$
        Assert.isTrue(firstHref == null || getNextSibling(firstHref, new String[] {"href", "status"}) == null); //$NON-NLS-1$ //$NON-NLS-2$
        Element propstat = getFirstChild(root, "propstat"); //$NON-NLS-1$
        while (propstat != null) {
            String status = getChildText(propstat, "status", true); //$NON-NLS-1$
            if (oldStatus.equals(status)) {
                setChild(propstat, "status", newStatus, PropStat.childNames, true); //$NON-NLS-1$
                if (responseDescription == null) {
                    Element responsedescription = getLastChild(propstat, "responsedescription"); //$NON-NLS-1$
                    if (responsedescription != null)
                        propstat.removeChild(responsedescription);
                } else
                    setChild(propstat, "responsedescription", //$NON-NLS-1$
                            responseDescription, PropStat.childNames, false);
            }
            propstat = getTwin(propstat, true);
        }
    }
public void changePropStatStatus ( String oldStatus , String newStatus , String responseDescription ) { Assert . isNotNull ( oldStatus ) ; Assert . isNotNull ( newStatus ) ; Element firstHref = getFirstChild ( root , "href" ) ; //$NON-NLS-1$ Assert . isTrue ( firstHref == null || getNextSibling ( firstHref , new String [ ] { "href" , "status" } ) == null ) ; //$NON-NLS-1$ //$NON-NLS-2$ Element propstat = getFirstChild ( root , "propstat" ) ; //$NON-NLS-1$ while ( propstat != null ) { String status = getChildText ( propstat , "status" , true ) ; //$NON-NLS-1$ if ( oldStatus . equals ( status ) ) { setChild ( propstat , "status" , newStatus , PropStat . childNames , true ) ; //$NON-NLS-1$ if ( responseDescription == null ) { Element responsedescription = getLastChild ( propstat , "responsedescription" ) ; //$NON-NLS-1$ if ( responsedescription != null ) propstat . removeChild ( responsedescription ) ; } else setChild ( propstat , "responsedescription" , //$NON-NLS-1$ responseDescription , PropStat . childNames , false ) ; } propstat = getTwin ( propstat , true ) ; } }
Changes all of this response's propstats with the given old status
to have the given new status. In addition, their response
descriptions are changed to be the given response description or
removed if the given response description is <code>null</code>. The
old status and new status must not be <code>null</null>. This
response must not be in the "status" form.

@param oldStatus           the old status of the propstat's that are
changed
@param newStatus           the new status of the propstat's that are
changed
@param responseDescription the new response description of the
propstat's that are changed, or
<code>null</null>
Changes all of this response s propstats with the given old status to have the given new status . In addition their response descriptions are changed to be the given response description or removed if the given response description is <code > null< / code > . The old status and new status must not be <code > null< / null > . This response must not be in the status form .