public Prop setProp() {
        Assert.isTrue(getFirstChild(root, new String[] {"allprop", "propname"}) == null); //$NON-NLS-1$ //$NON-NLS-2$
        Element prop = setChild(root, "prop", new String[] {"prop"}, true); //$NON-NLS-1$ //$NON-NLS-2$
        try {
            return new Prop(prop);
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
            return null; // Never reached.
        }
    }
public Prop setProp() {
        Assert.isTrue(getFirstChild(root, new String[] {"allprop", "propname"}) == null); 
        Element prop = setChild(root, "prop", new String[] {"prop"}, true); 
        try {
            return new Prop(prop);
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); 
            return null; 
        }
    }
public Prop setProp ( ) { Assert . isTrue ( getFirstChild ( root , new String [ ] { "allprop" , "propname" } ) == null ) ; //$NON-NLS-1$ //$NON-NLS-2$ Element prop = setChild ( root , "prop" , new String [ ] { "prop" } , true ) ; //$NON-NLS-1$ //$NON-NLS-2$ try { return new Prop ( prop ) ; } catch ( MalformedElementException e ) { Assert . isTrue ( false , Policy . bind ( "assert.internalError" ) ) ; //$NON-NLS-1$ return null ; // Never reached. } }
Creates and sets a new prop on this propfind and returns an editor on
it. This propfind must not already be in the "all prop" or "prop
name" form.

@return an editor on a new prop element
Creates and sets a new prop on this propfind and returns an editor on it . This propfind must not already be in the all prop or prop name form .