drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/PropertyBehavior.java
public void setIsKeepAllAlive(boolean isKeepAllAlive) {
        Element child = getFirstChild(root, childNames);
        boolean isAlreadyKeepAllAlive = false;
        if (isDAVElement(child, "keepalive")) //$NON-NLS-1$
            isAlreadyKeepAllAlive = "*".equals(getFirstText(child)); //$NON-NLS-1$
        if (isKeepAllAlive) {
            if (!isAlreadyKeepAllAlive) {
                if (child != null)
                    root.removeChild(child);
                appendChild(root, "keepalive", "*"); //$NON-NLS-1$ //$NON-NLS-2$
            }
        } else if (isAlreadyKeepAllAlive)
            root.removeChild(child);
    }
public void setIsKeepAllAlive(boolean isKeepAllAlive) {
        Element child = getFirstChild(root, childNames);
        boolean isAlreadyKeepAllAlive = false;
        if (isDAVElement(child, "keepalive")) //$NON-NLS-1$
            isAlreadyKeepAllAlive = "*".equals(getFirstText(child)); //$NON-NLS-1$
        if (isKeepAllAlive) {
            if (!isAlreadyKeepAllAlive) {
                if (child != null)
                    root.removeChild(child);
                appendChild(root, "keepalive", "*"); //$NON-NLS-1$ //$NON-NLS-2$
            }
        } else if (isAlreadyKeepAllAlive)
            root.removeChild(child);
    }
public void setIsKeepAllAlive ( boolean isKeepAllAlive ) { Element child = getFirstChild ( root , childNames ) ; boolean isAlreadyKeepAllAlive = false ; if ( isDAVElement ( child , "keepalive" ) ) //$NON-NLS-1$ isAlreadyKeepAllAlive = "*" . equals ( getFirstText ( child ) ) ; //$NON-NLS-1$ if ( isKeepAllAlive ) { if ( ! isAlreadyKeepAllAlive ) { if ( child != null ) root . removeChild ( child ) ; appendChild ( root , "keepalive" , "*" ) ; //$NON-NLS-1$ //$NON-NLS-2$ } } else if ( isAlreadyKeepAllAlive ) root . removeChild ( child ) ; }
Sets whether this propertybehavior is in the "keep all alive" form or
not.

@param isKeepAllAlive a boolean indicating whether this
propertybehavior will be in the "keep all
alive" form
Sets whether this propertybehavior is in the keep all alive form or not .