public LockEntry addLockEntry ( ) { Element lockentry = addChild ( root , "lockentry" , childNames , false ) ; //$NON-NLS-1$ Element locktype = appendChild ( lockentry , "locktype" ) ; //$NON-NLS-1$ appendChild ( locktype , "write" ) ; //$NON-NLS-1$ LockEntry result = null ; try { result = new LockEntry ( lockentry ) ; } catch ( MalformedElementException e ) { Assert . isTrue ( false , Policy . bind ( "assert.internalError" ) ) ; //$NON-NLS-1$ } return result ; }
Creates a new lockentry and adds it to this supported lock . Returns an editor on the new lockentry .