drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/PropertyBehavior.java
public void addProperty(String propertyHref) {
        Assert.isNotNull(propertyHref);
        Assert.isTrue(getFirstChild(root, "omit") == null); //$NON-NLS-1$
        Element keepalive = getFirstChild(root, "keepalive"); //$NON-NLS-1$
        if (keepalive == null)
            keepalive = addChild(root, "keepalive", fgNamesKeepAlive, true); //$NON-NLS-1$
        else
            Assert.isTrue(!"*".equals(getFirstText(keepalive))); //$NON-NLS-1$
        addChild(keepalive, "href", //$NON-NLS-1$
                encodeHref(propertyHref), new String[] {"href"}, //$NON-NLS-1$
                false);
    }
public void addProperty(String propertyHref) {
        Assert.isNotNull(propertyHref);
        Assert.isTrue(getFirstChild(root, "omit") == null); //$NON-NLS-1$
        Element keepalive = getFirstChild(root, "keepalive"); //$NON-NLS-1$
        if (keepalive == null)
            keepalive = addChild(root, "keepalive", fgNamesKeepAlive, true); //$NON-NLS-1$
        else
            Assert.isTrue(!"*".equals(getFirstText(keepalive))); //$NON-NLS-1$
        addChild(keepalive, "href", //$NON-NLS-1$
                encodeHref(propertyHref), new String[] {"href"}, //$NON-NLS-1$
                false);
    }
public void addProperty ( String propertyHref ) { Assert . isNotNull ( propertyHref ) ; Assert . isTrue ( getFirstChild ( root , "omit" ) == null ) ; //$NON-NLS-1$ Element keepalive = getFirstChild ( root , "keepalive" ) ; //$NON-NLS-1$ if ( keepalive == null ) keepalive = addChild ( root , "keepalive" , fgNamesKeepAlive , true ) ; //$NON-NLS-1$ else Assert . isTrue ( ! "*" . equals ( getFirstText ( keepalive ) ) ) ; //$NON-NLS-1$ addChild ( keepalive , "href" , //$NON-NLS-1$ encodeHref ( propertyHref ) , new String [ ] { "href" } , //$NON-NLS-1$ false ) ; }
Adds the given property href to this propertybehavior's list of live
properties. The property href must not be <code>null</code> and the
form of this property behavior must not already be omit or
keepAllAlive.

@param propertyHref the property href to add
Adds the given property href to this propertybehavior s list of live properties . The property href must not be <code > null< / code > and the form of this property behavior must not already be omit or keepAllAlive .