By "set its values" you mean replace the contents of the bookmark?
You can find bookmarks using TraversalUtils or XPath.
Altering the contents depends a bit on where the bookmark starts and finishes, but assuming the start and end is in a single paragraph, it is just a matter of replacing content in that paragraph's content list.