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 .